redirection

  • Thread starter Thread starter lam
  • Start date Start date
drop this as a default.htm file into the virtual directory.

<HTML>
<HEAD>
<!-- Send users to the new location. -->
<TITLE>redirect</TITLE>
<META HTTP-EQUIV="refresh"
CONTENT="10;URL=http://www.netmechanic.com">
</HEAD>
<BODY>
This page has moved. You will be
automatically redirected
to its new location in 10 seconds.
If you aren't forwarded
to the new page,
<a href="http://www.netmechanic.com">
click here</a>.
</BODY>
</HTML>

Here's a link to the article
http://www.netmechanic.com/news/vol2/html_no5.htm
 
Thanks.
Actually, I am wondering if we can do away with having to create
virtual directory.
For example, in case of the web site tfd:, if you type:
http://www.tfd.com/computer,
it automatically captures the word: "computer", without having to
create a virtual dir called "computer"
Regards,
 
Thanks.
Actually, I am wondering if we can do away with having to create
virtual directory.
For example, in case of the web site tfd:, if you type:
http://www.tfd.com/computer,
it automatically captures the word: "computer", without having to
create a virtual dir called "computer"
Regards,
Lam

Go into the properties of the website you want to handle the url. On
the WebSite tab click advanced. Now you just add the desired host
header name into the multiple identities for this website area. Now
when a request comes into that machine IIS will send all requests for
that specific URL into the website you defined the header.

Here's an easy example. Note: you will be adding an entry not editing
one.
http://www.tek-tips.com/viewthread.cfm?qid=53743&page=1447

Hopefully that makes sense...
 
Actually, what I was looking for is exactly as Peter refered to, "URL
Rewrite."
This would allow me to dynamically redirect pages at runtime by
modifying the configuration file.
Thanks everyone for replying.
 
Back
Top