|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by trixits in ISPs & Web Hosting, Active Server Pages (ASP)
I have two domains:
1)
www.existingdomain.com/newsite2)
www.newdomain.comAll of the links on the existingdomain.com/newsite
are all relative. As a result, anytime a user clicks on a link, it checks the server_name and returns the rest of the relative path. Is there a way to have all links redirect to the newdomain.com and return the rest of the relative path?
Here is my best attempt so far but it doesn't seem to work and I do not know what is broken...
1:
2:
3:
4:
5:
6:
7:
8:
|
CurrentFile = Request.ServerVariables("script_name")
CurrentDomain = Request.ServerVariables("server_name")
If CurrentDomain <> "www.existingdomain.com" Then
DeleteCookie()
URL = "http://www.newdomain.com/" & CurrentFile
Response.Redirect(URL)
End If
|
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625