.htaccess ‘fun’!

I’ve just spent a good few hours trying to sort out the .htaccess file to allow clean URLs. If you’re using .htaccess and a Mac here are my top tips:

  • Make sure you use tinkertool so that you can see the file in Finder
  • Whatever text editor you use make sure you save the file as ‘plain text’ (TextEdit does have this option although I know most people use something else)
  • FTP the file to the server as binary

If you copied and pasted any code from the web delete the end of rows and enter new return characters (i.e. rewrap the lines to make sure there are no dodgy characters in there).

I finally solved the problems I was having by editing the file directly on the server. Grrr!


About this entry