Skip to content

URL Rewriting with IIS 6.0

Unlike the Apache HTTP server, Microsoft’s IIS currently doesn’t have a built-in extension offering support for URL rewriting and ‘proxying’ of server requests. This means that you have to hack up some code to manually process URLs with ASP.NET or implement a nasty 404 handler in classic ASP.

Recently, I needed to centralise a number of services under a single domain name on one of my machines. Normally, an Apache user would use mod_rewrite to proxy requests through to another machine. I wanted to do this on IIS so I evaluated a number of ISAPI filters which purport to offer similar functionality. The candidates were ISAPI Rewrite, IISRewrite and OpUrl. After some spelunking in my Win2K3 virtual machine I decided to purchase an ISAPI Rewrite license. It fairly cheap and questions posted to the support forum are answered promptly.

I posted some setup instructions for proxying requests to a Kerio webmail server on their forums.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Behind the Weblog

Brian Lyttle - portrait photo by Sarah Gray ;)Brian Lyttle runs Source Foundry, a consultancy that specialises in Web development and content management. When he's not writing code and experimenting with the latest tools, you can find him honing his photography skills or helping Bill to improve his Mazda Miata.

I update my link blog regularly. It's powered by del.icio.us so you can subscribe to the RSS feed.

This Weblog is an experiment, and will focus on a broad range topics ranging from marketing to software, and anything else that comes to mind. These are my views and do not represent the views of any employer or client.

I'll be attending RailsConf 2006. Where will you be?

Archives

Useful links