Hi All,
I have WHMCS installed on a site that runs on Wordpress. Currently, WHMCS and Wordpress are working well together except for one hiccup: the Knowledge Base.
I can access /manage/knowledgebase.php and it shows the list of articles in my KB. However, when I try to open a KB article, I get a 404 error message.
I suspect its due to the Wordpress HTACCESS file. But I've tried instructing HTACCESS to ignore rewriting URLs under the manage or knowledgebase folder but it doesn't work.
A sample KB URL is:
https://www.test.com/manage/knowledgebase/1/How-to-set-up-an-email-account-on-BlackBerry.html
Does anyone have any idea how to handle this?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#Options +FollowSymlinks #WHMCS SSL
#Rewrite the URL for Wordpress, Ignore /manage
RewriteCond %{REQUEST_URI} !^/(manage/.*)$
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
#Rewrite the URL for WHMCS to always use httpS except for the dl.php file
RewriteCond %{REQUEST_URI} !^/manage/dl.php [NC]
RewriteCond %{REQUEST_URI} ^/manage/ [NC]
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://www.domain.com/$1 [R=301,L]
#Rewrite the URL for WHMCS dl area to always use http
RewriteCond %{REQUEST_URI} ^/manage/dl.php [NC]
RewriteCond %{SERVER_PORT} !^80$
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
</IfModule>