Forum Moderators: phranque

Message Too Old, No Replies

IIS redirection

but not redirecting home directory

         

IPfreely

2:24 pm on Dec 26, 2003 (gmt 0)

10+ Year Member



hello!

one of my clients had an old page "topics.htm" which i've converted in the new site to "topics.asp". there are evidently lots of websites linked to the old page so how do i set up Windows server to redirect folks to the new page? if it were the other way around i'd just use a meta tag... i know how to do it in apache but does IIS offer the same type thing?

thanks!
IPfreely

GaryK

3:57 pm on Dec 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How about replacing the source in topics.htm with the following:

<html>
<head>
<meta http-equiv="Refresh" content="0;/path/to/file/topics.asp" />
</head>
<body>
You might want to add a message and a standard link to the new page here for any user agent that isn't supporting redirects.
</body>
</html>

That's the simplest solution. You could also use ISAPI ReWrite to change the URL on the fly much like you can with Apache.

garann

6:07 pm on Dec 26, 2003 (gmt 0)

10+ Year Member



You should be able to do that from the IIS Admin application. Just find the topics.htm file in the current website and open its Properties. In the File tab, "The designated file" should be checked. Check "A redirection to a URL" instead and enter "topics.asp" in the box provided (assuming topics.asp is in the same folder). You also have the option of making the redirection permanent.

hth,
g.

IPfreely

7:27 pm on Dec 26, 2003 (gmt 0)

10+ Year Member



thank you very much guys! i'm going to give it a shot :)

-IPfreely