Bob Schneider
asked on
Redirect on same server
I want to redirect all requests for one web site to another web site on my server. I am running IIS 6.0 on Windows Server 2003. Right now I have just posted a default.asp page in the root directory for the incoming requests that redirects to a "www" page elsewhere on the same server. Will that work? Do I have to do anything to the host file?
Example: say a request comes in for www.domain1.com but I want that request to be redirected to www.domain2.com on the same server. Will what I said above do that if I just put (in the default.asp page in the domain1.com root directory)
[code]
Response.Redirect "www.domain2.com"
[/code]
I can't try it myself because this is the result of a change that I am waiting for dns servers to propagate.
Example: say a request comes in for www.domain1.com but I want that request to be redirected to www.domain2.com on the same server. Will what I said above do that if I just put (in the default.asp page in the domain1.com root directory)
[code]
Response.Redirect "www.domain2.com"
[/code]
I can't try it myself because this is the result of a change that I am waiting for dns servers to propagate.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
"www.domain2.com/folder/a_page.asp?some_var=1
More help?