Incorrectly writing to htaccess
-
Hey guys
We recently attempted to update the W3 Total Cache plugin on one of our sites; it failed to update, and since then we are having issues with the site’s htaccess file. We have completely uninstalled the plugin, and removed any and all config files or cache folders related to the plugin, and have freshly reinstalled it (0.9.2.11).
Yet, we are still having htaccess issues (giving users a 500 error).
It seems that periodically the plugin is writing to the htaccess file, but not completing it’s task, timing out maybe? Here is the htaccess file from the last 500 error.
# BEGIN W3TC Browser Cache <IfModule mod_deflate.c> <IfModule mod_headers.c> # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
Notice that the
IfModule
mod_deflate
.c andmod_headers
blocks are not being closed, and that the WordPress permalink rewrite block is being repeated 2 times.If anyone is having this issue, and can point me in the right direction of a fix, that would be awesome.
<3
Beau
- The topic ‘Incorrectly writing to htaccess’ is closed to new replies.