Welcome to WebmasterWorld Guest from 54.196.238.210

Forum Moderators: phranque

Message Too Old, No Replies

How to 301 Redirect - What do you do?

     

Shaundm

5:29 pm on Oct 15, 2005 (gmt 0)

5+ Year Member



Hi

I've searched on WW to try to find out how to set it up but can not find it. I basically just want to redirect from www.example.co.uk to www.example.com.

I have inserted in my file "index.htm" the following code which I got from another message. What am I doing wrong. I suspose I need the answer in simple terms. Thanks guys

<%
Response.Status = "301 Moved Permanently"
Response.AddHeader "Location", "http://www.example.com/index.htm"
%>

Eltiti

9:59 pm on Oct 16, 2005 (gmt 0)

10+ Year Member



I have inserted in my file "index.htm"

Ah, well, but you're using ASP code, so that should probably be "index.asp"...

Also, I'd use:

Response.AddHeader "Location", "http://www.example.com/"

--no need to specify the actual file name (and actually a bad idea, IMO)!

 

Featured Threads

Hot Threads This Week

Hot Threads This Month