I didn’t realize I needed the WordPress “comments” in the .htaccess file. I just learned the hard way as a site went down, I checked the .htaccess file (one of the first places I look for a 500 error) and it looked like this:
[code]RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
< IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
< IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
# END WordPress[/code]
Hmm, doubled up. WP had automatically put in the second set of code when someone saved a post. Who knew. I read that if WP sees the comments, it will read what’s in there and if it’s already there, won’t write it again. So what my .htaccess file should look like is just this:
[code]# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
SecFilterEngine Off
SecFilterScanPOST Off
# END WordPress[/code]
You totally saved my life with this one! I kept crashing a site when I was updating a post and couldn’t figure it out. Thanks!