redirection

R

r2thej151

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
 
L

lam

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,
 
R

r2thej151

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...
 
L

lam

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,905
Latest member
Kristy_Poole

Latest Threads

Top