azizarnold Posted August 29, 2012 Share Posted August 29, 2012 Hi Guys, I'm sure there is some here that can help. I have the following setup: http://www.domainname.com and whmcs is installed in http://www.domainname.com/billing Now knowledgebase articles only seem to load if I go http://www.domainname.com/billing/knowledgebase... How can I have it that it will load at http://www.domainname.com/knowledgebase... even though whmcs is installed in a subfolder called billing? possible? I have the following: # 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] RewriteRule ^knowledgebase.rss /knowledgebaserss.php 0 Quote Link to comment Share on other sites More sharing options...
azizarnold Posted August 30, 2012 Author Share Posted August 30, 2012 (edited) Ok figured it out after a lot of googling and a friend's assistance: # Redirect /knowledgebase/* /billing/knowledgebase/* <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^/knowledgebase/(.*)$ /billing/knowledgebase/%1 [L] </IfModule> Incase anyone needs it Edited August 30, 2012 by azizarnold 0 Quote Link to comment Share on other sites More sharing options...
azizarnold Posted August 30, 2012 Author Share Posted August 30, 2012 Also, ensure you comment out the following: #<IfModule mod_rewrite.c> #RewriteEngine On #RewriteBase / #RewriteRule ^index\.php$ - [L] #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteRule . /index.php [L] #</IfModule> I noticed it gives problems, 404 not found, when this is used. Not sure what the above does yer but I assume redirects index.php to / 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.