.htaccess crashing my site if not blank
-
Hi All,
Hoping somebody can help me, been trying very hard to work out what the problem is but im a bit stumped!
So my issues started when I tried installing W3 Total Cache. Which crashed my site.
I checked .htaccess and it contained only the code relevant to W3TC, no standard wordpress stuff. SO I deleted it and the site started to work again.
I then disabled W3TC, and attempted to force wordpress to regenerate the .htaccess file by changing the permalink structure. Yet to my astonishment this bombed the site out too showing only internal server error! Again, once I delete the .htaccess it starts to work again.
Surely wordpresses own code regarding permalinks wouldnt crash the install.
Here is what WP puts in there on changin the permalinks which kills the site.
# 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
Does anyone know what is happening with this?? Really could use a hand.
Thanks guys!!
- The topic ‘.htaccess crashing my site if not blank’ is closed to new replies.