bradgarland
Member
Posted 4 years ago #
Hey all, thanks up front for the help. I've got a odd issue here. Whenever anyone (me included) tries and posts a comment it won't submit it. And then loads an old post that I did over a year ago.
My website is here: http://bradgarland.net
The old post is keeps going to (dunno if it's related or not): http://tinyurl.com/5va9pg
Little more background: Somehow all my previous comments got corrupted and I was unable to get them back. :( So, because of it, I'm running a completely fresh version of WP2.5 and have it to automatically backup. Help!
bradgarland
Member
Posted 4 years ago #
Well, with a little work I came across another article online about it maybe being a .htaccess file issue. I'd also recently used someones custom .htaccess to help with the spam and such. Looks like it helped a little too well. I 'commented out' the comments section and everything is back to normal, just FYI. Here was what was doing it.
# protect from spam comments
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*yourdomain.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]