Automaic redirect hyperlink

  • Thread starter Kris Kringle Lick A Pringle
  • Start date
K

Kris Kringle Lick A Pringle

Hi all... I have a web site I've been hosting at a particular address and
now I have changed to a new web site address and would like people to be
able to be automatically redirected to the new address when they visit the
old address.

Any ideas?
 
S

Susan

How do I redirect a page automatically?
Content=5 means that the browser will wait 5 seconds to redirect. Content
can be set as low as 0. URL can be an absolute path to a page in another site
or a relative path to a page in your site in which case it would look like
this. URL="file.htm"

<title>title</title>
<meta http-equiv="Refresh" content="5 URL=http://www.url.com">
</head>
 
J

Jon Spivey

Hi,
The meta redirect will do as a worst case but it's nasty for 2 reasons - it
messes up the users back button and worse will probably play havoc with your
search engine rankings. A better solution is to send a 301 redirect from the
server, eg in asp you'd do
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.newdomain.com/page.asp"
%>
This will take your users directly to the new page and will tell search
engines the page has moved for good, they will then update their index with
the new url and you'll keep your ranking.
 
T

Tom J

Jon, will this also work to keep the rating when it's the same org but with
a name change? I am hosting a camping club that is merging with another
club, but the new name will be different from either one.
Thanks,
Tom J
 
J

Jon Spivey

Hi Tom,
Yes it will. Search engines are very suspicous of redirects such as META,
response.redirect etc but realise that sites may have legitimate reasons to
move sometimes.. Look at it this way, if I gave you my home address and then
said I've moved from address A write to me at this PO Box you might be
suspicous - why won't I give my real address, what have I got to hide - but
if I said I've sold my house at address A and bought a new house at address
B you wouldn't be sceptical - that's totally legitimate.

META refresh and response.redirects are seen by the search engines as PO
Boxes, and treated accordingly, 301 location moved is seen as selling your
old house and buying a new one. You'll keep your old ranking at the new
address.
 
Top