Wordpress: Pretty Permalinks On IIS
Using Wordpress on an IIS (windows) server can be a real pain. The biggest issue I have found is trying to get pretty permalinks (making the address bar look like http://www.james-morrison.org/wordpress/ rather than http://www.james-morrison.org/index.php/wordpress/ or worse http://www.james-morrison.org/?p=123).
I have found an easy way to get around this (my site is hosted on an IIS server) and thought it would only be fair to share it with the world.
Before you begin you need to be able to choose a custom 404 error message as all URL requests are routed through this page as the file does not actually exist.
Download this file by right clicking and choosing “save target as” then filing it somewhere safe. Rename the file to a .php extension, put it in the root of your wordpress site and set your custom 404 error page to that file.
You can now set the permalink structure on your site e.g. “/%category%/%postname%/” – the custom file you have downloaded looks up the content and displays it!
If you need help implementing this contact me and I will do my best to help.



Download Design








December 7th, 2008 at 6:45 pm
Nice post. Thank you for the info. Keep it up.
December 29th, 2008 at 11:15 am
Cool idea, but there's 1 problem: The header code sent is probably 404, which might mess with your site's indexing by search engines as well as your statistics.
December 30th, 2008 at 1:21 am
There are a few suggestions on how to do this in the CODEX
February 25th, 2009 at 7:17 am
Good Information
http://www.y920.com
February 25th, 2009 at 7:20 am
Life Becomes easier while reading articles
April 1st, 2009 at 4:32 am
Love the tips.
keep em coming