homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

How to 301 Redirect - What do you do?

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


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"



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

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)!

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved