Search code examples
asp.netasp-classicurl-rewritingsef

Can we use ASP.Net Url Rewriting features in classical ASP


I am developing an application in classical ASP that now requires sef urls. I do not have any asp.net experience but I've heard that ASP.NET+IIS6 provide built-in url rewriting functionality. So before i have someone purchase a url rewriting component for me, I am wondering if it is possible to use the ASP.NET/IIS6 url rewriting functionality in a ASP classical application?

If this is possible, please post in a sample web.config file for the following urls so that I can test it immediately:

/Country/State/City/Area/Rental-1234/
/Country/State/City/Area/Rental-1234/Photos

become:

/rental-detail.asp?rental_id=1234
/rental-photos.asp?rental_id=1234

Edit ----

The webserver is an IIS6 server running on Windows 2003 Server. If its possible to use IIS7's url rewriting functionality then my next question is how easy is it to upgrade from IIS6 to IIS7. Is a service pack upgrade sufficient for this task?


Solution

  • Yes it is possible, but for IIS6 you need a third-party URL rewriting module like IsapiRewrite.

    http://www.isapirewrite.com/