Stop cPanel from creating redirect rules from .htaccess
-
This isn’t “exactly” a WordPress question, but it affects WordPress and I am hoping someone here has the solution.
I have a domain with numerous add-on domains, and each domain has it’w own .htaccess file to help with the WordPress files and redirects.
I recently switched hosting companies and noticed that when I did, the cPanel “Redirects” section created a bunch of rules based on its interpretation of the redirects in the .htaccess files for each and every domain. However, since cPanel read ALL of the .htaccess files for all of the add-on domains, the rules that cPanel created are applying to all the domains when they should not be. This is blocking some posts and pages in wordpress, sending some links to other domains, and creating some infinite loops. All very frustrating.
If I deleted the redirects in cPanel, it deletes them from the .htaccess file it pulled them from. If I put it back into the .htacess file, cPanel recreates the rule.
Does anybody know how to “divorce” these two? I still want to create custom redirects in cPanel, but I don’t want cPanel to be able to read or write to the .htaccess files.
- The topic ‘Stop cPanel from creating redirect rules from .htaccess’ is closed to new replies.