Migrating a Web Server to IIS 5.0

Previous Topic Next Topic

Redirects

In Apache you use the following .htaccess command to redirect a user to another file:

Redirect /oldfile.html http://domain.com/path/to/new/file

There are two ways to implement a redirection in IIS 5.0:

  1. In the IIS snap-in open Properties for the Web site. On the Home Directory tab, select A redirection to a URL, and choose the appropriate options.
  2. Or, put a Default.asp file, containing the following code, in the same directory as the old file:
    Response.Redirect /oldfile.html http://domain.com/path/to/new/file
    

© 1997-1999 Microsoft Corporation. All rights reserved.