[thelist] IIS5 Redirects

Joshua Olson joshua at waetech.com
Tue Mar 4 11:34:01 CST 2003

----- Original Message -----
From: "Michele Foster" <michele at wusc.ca>
Sent: Tuesday, March 04, 2003 12:13 PM

> Hi folks,
> Second question of the day .. we're converting our entirely static (html)
files to dynamic (asp) driven files.  A big concern will be links to our
existing site.  I know I've done it with Apache before, redirecting all
*.html links to *.asp instead.  But can I do something similar on Win2K
server?  How?
> Also, *most* of the time, the new site will keep the same file name as
before and it will just be the extension that will change from html to asp.
However, I'm guessing 10-25% of the documents we have now will really change
their file name (deleted, moved to an entirely new section, etc.).  Is there
a way to redirect these as well?  e.g. page2.html --> page56.asp


There's a couple things you can do. Here's two of them:

1.  Assign the 404 handler in IIS to point to an ASP page.  Do a lookup on
the URL and the do a Server.Redirect to the new URL.

2.  Use something such as ISAPI_ReWrite (www.isapirewrite.com) to rewrite
the URL's before they even get to IIS.


More information about the thelist mailing list