Apache mod_rewrite for IIS
So what to do if your on a Microsoft IIS server? There are a few commercial ISAPI modules that I found:
- ISAPI ReWrite - this one seams to be the most popular, they also have a free lite edition.
- IIS Rewrite
- Mod Rewrite for IIS
Are there any other ISAPI url rewriting filters that I am missing?
Like this? Follow me ↯Tweet Follow @pfreitag
You might also like:
- Request Filtering in IIS 7 Howto - February 16, 2010
- IIS: Disabling Weak SSL Protocols and Ciphers - October 8, 2009
- Remove X-Powered-By: ASP.NET Header - October 21, 2008
- Howto Disable the Server Header in IIS - December 6, 2005
- Batch Files to Restart Services on Windows - October 9, 2002
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.
Steer clear of Mod_Rewrite for IIS. It's garbage. I couldn't get it to work and they never reply to emails.
Try URL Rewrite (ISAPI Filter for IIS) http://www.smalig.com/url_rewrite/
If you're using ASP.NET, you may want to try http://urlrewriter.net/
Will any of these options work with cold fusion mx on an ISS server?
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.
"I tried using the free mod_rewrite (http://www.iismods.com/url-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.
try the free IIRF http://cheeso.members.winisp.net/IIRF.aspx it works with CFMX on IIS5 or 6. It does Regular Expressions. Auto-reload of ini file, too. checkitout.
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
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. http://www.resimsakla.com
"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.
After trying all the solutions listed in this blog, I can tell that the way to go is "IIS Mod-Rewrite pro" http://www.micronovae.com/ModRewrite/ModRewrite.html 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.
I hate IIS but that's the system we have at work. Any new free rewrite for IIS since last year?
IIRF is consistently maintained. Still free. Now does ProxyPass, RewriteMap.