Monday, January 27, 2014

IIS URL rewrite rules

One of the things that always annoys when a visit a website is that sometimes they support  www.websiteurl.com but not websiteurl.com. So if you try to remember the URL(to train your memory muscles) , there is 50% chance that you type the wrong address.

www

Fixing this is easy if your site is hosted in IIS, by using the URL rewrite module you can map between www.websiteurl.com and websiteurl.com anyway you want. I’m not good in writing these URL rewrite rules but luckily for me (and you), Mads Kristensen did the job for us. In this blog post he explains the exact rules needed to configure this for your IIS sites.

Thanks Mads!

No comments: