The Most Active and Friendliest
Affiliate Marketing Community Online!

“AdsEmpire”/  Direct Affiliate

Redirect your visitors to your new site

Status
Not open for further replies.
O

ovi

Guest
So you moved your site to a new place, but you'd like to let your visitors find your new home. You can leave a message with the link to your new place, but a more efficient way is to have the visitors be automatically redirected to your new address.

To do this, insert the following between the HEAD tags of your page:

<META HTTP-EQUIV="refresh" CONTENT="10; URL=http://www.YOURNEWSITE.com/">

The code CONTENT="10; tells the browser to wait 10 seconds before transfer. You can choose however long you would like, but perhaps you'd want to avoid 0 seconds because some browsers aren't capable of handling it.
 
You have to be very careful using meta refresh as it can cause your site to be flagged as potential spam. Meta refresh is one way of low level cloaking in as much as you serve the content of the page to the spider, but the visitor never sees it.

If you are redirecting I really would recommend a 301 redirect between the two pages. Here are a couple of simple 301's



a PHP 301


CODE

header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.newdomain.com/newdir/newpage.htm");
exit();


and ASP 301

CODE


<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.newdomain.com/newdir/newpage.asp"
response.end
%>


Cheers and sorry to complicate things.

OWG
 
Status
Not open for further replies.
banners
Back