.htaccess keeps getting overwritten
AnsweredHi,
I migrated my cPanel hosts but for some reason on only two Domains the .htaccess is getting over written with the following
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(index|wp\-admin|wp\-include|wp\-comment|wp\-loader|wp\-corn\-sample|wp\-logln|output|about|admin|randkeyword|readurl|wp\-ver).php$ - [L]
RewriteRule ^.*\.[pP][hH].* index.php [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
I cant work out where this is getting over written from, it mentions Wordpress but it is even over writing a site that is not a Wordpress one.
Thanks,
-
Rebuilt web roots in new directory then pointed the domains and that fixed the issue. Had to ensure that all undesired .htaccess were removed.
1 -
Thanks for sharing the fix!
0
Please sign in to leave a comment.
Comments
2 comments