So here i am again, on a windy day on the north-east coast of beautiful Brazil, a day on which windsurfers take out their smallest sails to court the waves.. unfortunately those very same waves broke my equipment some days ago.. and all i can do for now is try to configure this 301-redirect..
Life can be cruel.
PROBLEM:
www.vacationsbrazil.com points to
www.mauriciotravels.com which is the main domain. According to the tool
http://www.seoconsultants.com/tools/headers.asp this redirect is not a 301..
#1 Server Response: http://www.vacationsbrazil.com
HTTP Status Code: HTTP/1.1 200 OK
Date: Mon, 02 Apr 2007 15:13:17 GMT
Server: Apache
Cache-Control: no-store, no-cache, must-revalidate
Connection: close
Content-Type: text/html
So i thought, OK let's use a small ASP-script to make this a 301-redirect..
-----------------------------------------
Dim Domain, URL
Domain = Request.ServerVariables ("HTTP_HOST") ' Gets the domain name.
URL = Request.ServerVariables ("URL") ' Gets the current URL.
if (InStr (Domain, "vacationsbrazil") = 1) then
URL = "http://www.mauriciotravels.com" & URL ' Concatenates the URL to the domain
Response.Status = "301 Moved Permanently"
Response.AddHeader "Location", URL
end if
-----------------------------------------
Right?
Unfortunately it doesn't work because "Domain" allready returns "www.mauriciotravels.com" when in the locationbar is still displayed
www.vacationsbrazil.com
Can anyone help me out?
Thanx.