So I had 10 minutes spare today and thought I’d see if I could crack making pretty permalinks on this here WordPress site and after a lot of googling and a lot of WTFSpeakEnglish-ing I found it’s actually dead simple. Here’s how I did it.
Firstly I should mention I run this site on an XServe in my office, so I’m running Mac OS X Server’s version of Apache 2, this is what was causing me the problem because Apple do make changes to software they include in their OS and as much as I like Apple kit they’re not always the best at documenting it! So I hope this helps someone.
The setup then is apache 2.2.22 running on Mac OS X Server 10.7.5. As ever a different version of apache or a different version of Mac OS X Server may yield different results.
Depending on how you have things set up you’ll see a number of files in here or just a couple. the file we’re interested is named along these lines:
In my case it was 0000_192.168.8.196_80_woodgie.net.conf
We want to edit the file, so back it up first. You’ll need to be root for this:
cp 0000_192.168.8.196_80_woodgie.net.conf 0000_192.168.8.196_80_woodgie.net.conf.bak
Then open it in an editor. I’m a nano man myself. I think it’s LOVELY that other people use emacs and vim, they’re just wrong, is all.
It’ll be a small file, only about 25 lines or so. Search for the line
It’ll be in the vicinity of the line <Directory “/path/to/website/files”>. Change it to
Then you need to… well, nothing really. That’s it, you’re done. Save the file and restart apache and you should now be able to use WordPress’ pretty permalinks.
In related news, can anyone suggest to me a good plugin for WordPress that will allow me to do prettier code lines than just using the standard block quoting?
Enjoy your pretty permalinks!