Pretty WordPress Permalinks in IIS
We desperately wanted www.dotnetblogengine.net to be better than Wordpress but it wasn't. Not only that, the community support available for Wordpress is astounding.
UPDATE: In IIS 7.5 it's now possible to implement nice looking URLs for your Wordpress blog with the built in rewrite functionality. Check here for more details.
One issue we couldn't find an easy way around was the implementation of pretty Permalinks for our blog. What's a pretty Permalink we hear you ask? By default a WordPress blog post would have the Permalink http://atlascs.co.uk/blog/?p=N. This is both impossible to understand and not very useful. Whereas we wanted our Permalinks to be far more readable to the human eye, and include information regarding what the blog post is about. This is also useful for SEO purposes but that's an entirely separate discussion.
The usual approach to implement this functionality is the use of a .htaccess file but this is only applicable to Apache. We're running our website on Windows Server so this isn't an option.
After hunting around for a simple solution we finally found one by Einar Egilsson.
To implement this solution follow these simple steps:
- Take this file, and put it in the root of your Wordpress site (rename .txt to .php)
- Set your sites 404 page to point to the wordpress-404.php URL. Most control panels at web hosts allow you to do this. If you’ve got the option to select between FILE and URL then choose URL.
- Go to Options -> Permalinks in your Wordpress admin page, and choose an appropriate structure for your links. We chose Custom with this pattern:
/%year%/%monthnum%/%day%/%postname%/
Simples! Your Wordpress posts will now display with easy to read Permalinks and your site will be much easier to navigate. We use this solution on a number of our sites including this blog, our Business Rate Relief site and Software Development website.
Enjoy!
Postedin: Online marketing, Web, WordPress





Comments
May 25, 2009 12:15 pm HP continuous ink system says:
I have noticed many changes in your blog and they are like improvements for you.
Post Your Comments