Let's suppose that you have a web site http://www.xoc.net and you want
http://xoc.net to do a client-side 301 error redirect to the http://www.xoc.net
site. This is useful in several ways:
-
The client's browser will always show http://www.xoc.net, not http://xoc.net.
-
Listings in a search engine will always show http://www.xoc.net.
To perform the redirect, suppose that the content for www.xoc.net comes from
c:\inetpub\www-xoc-net:
-
Open Internet Services Manager and create a web site for xoc.net. Make the
content directory for the site be the same directory, c:\inetpub\www-xoc-net,
as www.xoc.net.
-
Test getting content from http://xoc.net. This should work, but won't redirect
yet.
-
Select the xoc.net web site in Internet Services manager and enter the
properties.
-
In the Home Directory tab, change the option button "When connecting to this
resource the content should come from" to "A redirection to a URL".
-
Specify the URL as http://www.xoc.net.
-
Check the checkbox that says "A permanent redirection for this resource."
|