htaccess Rewrite Giving 500 Errors
-
This is the standard htaccess code:
# BEGIN wordpress
<ifmodule mod_rewrite.c>
rewriteEngine On
rewriteBase /
rewriteCond %{REQUEST_FILENAME}!-f
rewriteCond %{REQUEST_FILENAME}!-d
rewriteRule . /index.php [L]
</ifmodule>
# END wordpressAnd this is mine:
# 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
Can you see the difference? There’s one line in there in my version that’s added. It’s this one: RewriteRule ^index\.php$ – [L]
Is this due to my “Pretty Permalink” structure that I’ve set withing my Dashboard Setting? If not, why is this line here?
Anyway, my problem is that about once per day, my htaccess code rewrites automatically and tosses my site into a 500 error.
I read this article which states that nothing custom should be written after the # BEGIN bit. So, is it just that simple? Bove that one line of code above the # BEGIN, or is it something else?
I think is causing an inordinate number of 404 Errors, too, as both problems began at the same time.
Can anyone out there help me get this frustrating issue back on track? Thanks so much!
- The topic ‘htaccess Rewrite Giving 500 Errors’ is closed to new replies.