Problems with htaccess
Oh my god… I got a lot of problems with my .htaccess file this morning and it looks like I still have some. The home page is OK but all RewriteRule rules are not working… quite weird.
I also had problems with the banning referrals technique I’m using from Simon Jessey.
Update: OK… I uploaded a modified .htaccess file: it was not working. I opened it with WordPress’ template file editing, I saved it: it’s working. Sorry for all the problems it might has caused.
Anyone ever had any problems with their .htaccess file that caused a 500 error?




There are 3 comments yet. Don't be shy.
Yeah, the dreaded HTTP 500 error. Basicly, I can lower this error down to two things:
1. Server misconfiguration
2. Parse error in .htaccess
It was probably the second one in your case, and WordPress automatically corrected it. Same thing happened with me - I had to edit my file with WordPress.
Also, I just remembered - if you uploaded the file in BINARY mode, you could’ve gotten the same error. Maybe that’s why.
I think the reason is the last point you mentionned, the binary mode transfer.
Considering the given information, it was a Windows/UNIX line-break problem.
Uploading a file in binary is not a bad thing (in fact it is the GOOD thing), but line-break problems arise when switching Operative Systems.
ASCII mode will transparently translate the line-breaks, but also probably trash international/UTF8 encodings.