ZillurRehman Posted December 13, 2014 Share Posted December 13, 2014 Hi, I am new user of your product WHMCS. I have all the things setup. I have now added two articles in Knowledgebase area of WHMCS, they do appear but when i click them the same pages appears again and again. Here is the link: http://shadowaura.co.uk/knowledgebase.php when i click it the same page opens on this link: http://shadowaura.co.uk/knowledgebase/1/Reset-Password.html Thanks in advance. Regards, ZillurRehman 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 13, 2014 Share Posted December 13, 2014 I think there is something wrong with your .htaccess file. setup -> general settings -> support try unticking the "KB SEO Friendly URLs" checkbox - the knowledgebase pages should then work again... if so, take a look at the page below for help with .htaccess http://docs.whmcs.com/Support_Center#Search_Engine_Friendly_URLS 0 Quote Link to comment Share on other sites More sharing options...
ZillurRehman Posted December 13, 2014 Author Share Posted December 13, 2014 Thanks Brian. When i uncheck "KB SEO Friendly URLs" it work. but i want User Friendly Links turned on. i also did this step: Setup > General Settings > Support and tick the box for "KB SEO Friendly URLs" what should be the issue? 0 Quote Link to comment Share on other sites More sharing options...
ZillurRehman Posted December 13, 2014 Author Share Posted December 13, 2014 by the way i have this default text in my .htaccess file RewriteEngine On # Announcements RewriteRule ^announcements/([0-9]+)/[a-z0-9_-]+\.html$ ./announcements.php?id=$1 [L,NC] RewriteRule ^announcements$ ./announcements.php [L,NC] # Downloads RewriteRule ^downloads/([0-9]+)/([^/]*)$ ./downloads.php?action=displaycat&catid=$1 [L,NC] RewriteRule ^downloads$ ./downloads.php [L,NC] # Knowledgebase RewriteRule ^knowledgebase/([0-9]+)/[a-z0-9_-]+\.html$ ./knowledgebase.php?action=displayarticle&id=$1 [L,NC] RewriteRule ^knowledgebase/([0-9]+)/([^/]*)$ ./knowledgebase.php?action=displaycat&catid=$1 [L,NC] RewriteRule ^knowledgebase$ ./knowledgebase.php [L,NC] 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 14, 2014 Share Posted December 14, 2014 it's going to be the .htaccess file that's the issue... two things to try... 1. if you're using nginx, there was a version of htaccess posted in the link I gave... 2. there is a version posted at the link below that might work... http://forum.whmcs.com/showthread.php?27516-Knowledgebase-KB-SEO-URL-Re-writing-not-Working&p=340511#post340511 0 Quote Link to comment Share on other sites More sharing options...
ZillurRehman Posted December 14, 2014 Author Share Posted December 14, 2014 thanks man i replaced this: RewriteEngine On # Announcements RewriteRule ^announcements/([0-9]+)/[a-z0-9_-]+\.html$ ./announcements.php?id=$1 [L,NC] RewriteRule ^announcements$ ./announcements.php [L,NC] # Downloads RewriteRule ^downloads/([0-9]+)/([^/]*)$ ./downloads.php?action=displaycat&catid=$1 [L,NC] RewriteRule ^downloads$ ./downloads.php [L,NC] # Knowledgebase RewriteRule ^knowledgebase/([0-9]+)/[a-z0-9_-]+\.html$ ./knowledgebase.php?action=displayarticle&id=$1 [L,NC] RewriteRule ^knowledgebase/([0-9]+)/([^/]*)$ ./knowledgebase.php?action=displaycat&catid=$1 [L,NC] RewriteRule ^knowledgebase$ ./knowledgebase.php [L,NC] With: RewriteEngine On Options +FollowSymLinks Options -Indexes Options -MultiViews # Announcements RewriteRule ^announcements/([0-9]+)/[a-z0-9_-]+\.html$ ./announcements.php?id=$1 [L,NC] RewriteRule ^announcements$ ./announcements.php [L,NC] # Downloads RewriteRule ^downloads/([0-9]+)/([^/]*)$ ./downloads.php?action=displaycat&catid=$1 [L,NC] RewriteRule ^downloads$ ./downloads.php [L,NC] # Knowledgebase RewriteRule ^knowledgebase/([0-9]+)/[a-z0-9_-]+\.html$ ./knowledgebase.php?action=displayarticle&id=$1 [L,NC] RewriteRule ^knowledgebase/([0-9]+)/([^/]*)$ ./knowledgebase.php?action=displaycat&catid=$1 [L,NC] RewriteRule ^knowledgebase$ ./knowledgebase.php [L,NC] and it worked 0 Quote Link to comment Share on other sites More sharing options...
andrei.p Posted August 8, 2015 Share Posted August 8, 2015 Have a .htaccess file with the same content but nevertheless rewrite does not work. The log shows: [sat Aug 08 17:22:21 2015] [error] [client 31.173.85.100] File does not exist: /home/www/whmcs/knowledgebase [sat Aug 08 17:23:27 2015] [error] [client 31.173.85.100] File does not exist: /home/www/whmcs/favicon.ico, referer: domain.com/knowledgebase/7/Advanced-cPanel-Management 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.