November 17th, 2005 | 2 Comments
Comments Broken
The comments are broken on the site at the moment - not sure why, as I haven’t changed anything, but it’s coming up with a permission error when a comment is submitted. I checked the CHMOD on the files to make sure it’s not something like that which has changed itself somehow, but this doesn’t seem to be the case. Am I even on the right track?
The comments are looked after by Wordpress, so I’ve tried a few other things in there to make sure it works. There are a few other pages doing a similar thing. All being well this post makes it onto the site.
If anyone has any clues, leave them in the comm… aww sh*te. On second thoughts, mail me at rglewis [at] gmail.com
I’m hoping this is one of those problems that sorts itself out, but who knows.
Update
Well, it seems to be fixed on this page (as soon as I posted this entry), so let’s see if it’s just a problem with a specific entry…
Update 2
O.K., I think I’ve found the cause: a certain line in my .htaccess file.
In my .htaccess file I’ve got a long list of entries to help reduce referrer spam. These look for referring pages which include certain keywords in the URL. I suspect the naughty word in the following line was triggering the permission problem on the page with the URL of http://wv4.co.uk/web/google-analytics:
RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?.*(-|.)anal(-|.).*$ [NC,OR]
Removing this line seems to solve the problem, although there is one thing that’s nagging me, and that’s that one of my previous entries also had the word “analytics” in the URL, and adding comments on that page wasn’t a problem. Everything seems O.K. now, although I will be checking through my .htaccess file for any other possible problems.

test
Ruddy hell, it’s fixed!