Pete Freitag Pete Freitag

Apache mod_rewrite for IIS

Published on March 24, 2005
By Pete Freitag

mod_rewrite is easily my favorite module for Apache. You can use it to create very clean urls, and you can even use it for security validation.

So what to do if your on a Microsoft IIS server? There are a few commercial ISAPI modules that I found:

Are there any other ISAPI url rewriting filters that I am missing?

iis windows isapi

Apache mod_rewrite for IIS was first published on March 24, 2005.

If you like reading about iis, windows, or isapi then you might also like:

Discuss / Follow me on Twitter ↯


We use ISAPI ReWrite as well and we like it a lot. I wonder why Micro$oft don't add this by default on IIS.
by Emanuel Costa on 03/25/2005 at 10:00:38 AM UTC
by Walt Sparrow-Hood on 03/25/2005 at 12:01:08 PM UTC
Steer clear of Mod_Rewrite for IIS. It's garbage. I couldn't get it to work and they never reply to emails.
by Patrick McElhaney on 06/20/2005 at 7:46:05 AM UTC
Try URL Rewrite (ISAPI Filter for IIS)
by smart on 08/15/2005 at 8:37:33 AM UTC
If you're using ASP.NET, you may want to try
by Seth on 11/26/2005 at 9:36:03 AM UTC
Will any of these options work with cold fusion mx on an ISS server?
by Dave on 01/29/2006 at 7:37:12 AM UTC
Yes they should work fine with ColdFusion, I have used isapi rewrite with CF on IIS and it worked great. I haven't tested the other options but I would suspect they would also work just fine.
by Pete Freitag on 01/29/2006 at 1:15:10 PM UTC
"I tried using the free mod_rewrite ( with IIS6 on a server that has cold fusion installed and the w3wp.exe process that executes the mod_rewrite.dll kept crashing."

The exact same thing is happening to me at the moment. Good to hear that it's not just me. I was looking for a new mod_rewrite version for my server and I think I will go with ISAPI rewrite as they seem a bit more transparent.
by Peter on 02/02/2006 at 6:38:10 AM UTC
I'm having trouble with mod_rewrite too. I'm not sure what's causing it because I have been using mod_rewrite on several other sites with no problems.

Now with my new site that just launched, every time it tries to reload the .ini file, the system crashes out. Only seems to do it on the live server though - not on our dev server. I guess I'll check out ISAPI
by Ryan Smith on 06/13/2006 at 9:21:45 AM UTC
What's wrong with Mod_Rewrite? I got it to work and it seems to work just fine. Personally, I think this is the way to go as for the free options.
by resim on 09/13/2007 at 4:43:28 PM UTC
"Mod_Rewrite for IIS" from IIS Mods was garbage. I haven't seen "IIS Mod_Rewrite" before. I don't think it was around when this blog was written.

The .htaccess compatibility sounds very cool! I'm currently developing in Apache and deploying to IIS, so I may have to check that out.
by Patrick McElhaney on 09/13/2007 at 6:37:40 PM UTC
After trying all the solutions listed in this blog, I can tell that the way to go is "IIS Mod-Rewrite pro"

It works exactly, and I mean EXACTLY, like apache mod_rewrite. That's fantastic! The UI is very nice and has a whole bunch of nice tools. I must also tell that this is the most professional add-on for IIS I have ever experienced in general (I liked very much the diagnostics tool!!!).

Stan thanks for the post!

Also, this blog is pretty old, so I guess many things have changed since the very first post. Indeed, some of the listed software does not exist anymore.
by danny on 12/11/2007 at 4:39:44 AM UTC
I hate IIS but that's the system we have at work. Any new free rewrite for IIS since last year?
by Off Ramz on 04/18/2009 at 6:57:24 PM UTC