0

I have installed whmcs in a wordpress site. When I try to access the admin mysite.com/whmcs/admin I am redirected to my site error page of wordpress. Would you please guide me on what I should write in .htaccess file or what should I do on mysite.com/whmcs ?

thank you in advance for help

1 Answer 1

0

This SHOULD work. I've used it before to have WordPress ignore a folder, but I cannot guarantee it will work with your CMS.

Find this section in your .htaccess file:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

And add this line (replacing "foldername" with "whmcs"):

RewriteCond %{REQUEST_URI} !^/(foldername|foldername/.*)$

So that the rewrite section looks like this:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/(foldername|foldername/.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

This should tell WordPress's URL rewriter to ignore the whmcs folder when it makes it's SEO-friendly URLs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.