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?
- 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
ISAPI ReWrite rocks!
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/
Ionic's ISAPI Rewrite Filter (IIRF). http://www.download.com/Ionic-s-ISAPI-Rewriting-Filter/3000-2648_4-10417963.html Free. Source available. No MFC. Regular Expressions.
If you're using ASP.NET, you may want to try http://urlrewriter.net/
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.
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. There's that problem, and I couldn't figure out how to get the RewriteCond condition rules to work properly, but that might have been me. Just a warning...
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.
For me also w3wsc.dll keep on crashing. I think there is some problem in mod rewrite. It is working fine but w3wp crashing. My site http://www.bepenfriends.com is not running properly because of this. I don't kow how to solve.
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
mod_rewrite.dll crashes w3wp.exe for me too, and on my dev machine with XP, inetinfo started regularly using 100% CPU. Probably related. Looking for a better alternative now.
Found this and as far as I've tested it, it's by far the best I've ever seen :-) http://www.micronovae.com/ModRewrite/ModRewrite.html Their "pro" version also supports .htaccess. WOW!! Unfortunatelly, they don't give away a free version.
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.
For rewrite url, there is Guideman. http://na-s.jp/Guideman/index.en.html
ISAPI_Rewrite 3 now support Apache mod_rewrite syntax and include plenty of interesting features. New product homepage here: http://www.helicontech.com/isapi_rewrite/
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.
Micronovae's product is definitely the best; it actually works. That said, it isn't anything special. IIRF will be decent once the glaring flaws are fixed - hex encoded (%xx) urls being mangled as %SERVER_VARIABLEs et cetera. The other products simply weren't able to process Apache mod_rewrite rules off the bat. http://www.micronovae.com/ModRewrite/ModRewrite.html
ISS sucks at all ...
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.
- Redirect www and non https in IIS using web.config
- Not authorized to perform: ssm:GetParameters
- What is the difference between ASCII Chr(10) and Chr(13)
- Fixinator and Foundeo Security Bundle
- Running CFML on AWS Lambda with FuseLess Slides
- Updating Java on ColdFusion or Lucee
- ColdFusion returning empty response with server-error: true
- Careful applying CF11u16, CF2016u8, CF2018u2