Click to See Complete Forum and Search --> : Domain forwarding and URL redirection


Foundas
07-17-2006, 04:12 AM
Hi guys,

i am facing the following problem:

my account is with brinkster and i use the following script as given by them:

<%@Language=VBScript%>
<%
SiteNameURL = Request.ServerVariables("SERVER_NAME")

Select Case SiteNameURL
Case "hydrogrown.com"
Response.Redirect "http://www.hydrogrown.com.cy/index.asp"

Case "www.hydrogrown.com"
Response.Redirect "http://www.hydrogrown.com.cy/index.asp"

Case "hydrogrown.gr"
Response.Redirect "http://www.hydrogrown.com.cy/index.asp"

Case "www.hydrogrown.gr"
Response.Redirect "http://www.hydrogrown.com.cy/index.asp"

Case Else 'redirecting everything other than cases selected above
Response.Redirect "index.asp"
End Select
%>

When i type http://hydrogrown.com or http://www.hydrogrown.com, it redirects me to http://www.hydrogrown.com.cy and the URL in the Internet Explorer or FF is replaced with the .com.cy address. Which is how i want it to work. But it doesnt do the same for the hydrogrown.gr. From the domain provider or .gr domain, i have the domain forwarded to www.hydrogrown.com.cy. The page loads successfully but the URL of IE or FF is not changed.

Any advice on how to solve this problem??

Thanking you in advance