Dismiss Notice
Welcome to Our Community
Wanting to join the rest of our members? Feel free to sign up today.

Redirect your visitors to your new site

Discussion in 'General Webmaster Helpdesk' started by ovi, Jun 6, 2005.

Thread Status:
Not open for further replies.
  1. ovi

    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.
  2. OldWelshGuy

    OldWelshGuy New Member Webmaster

    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


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

    and ASP 301


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

    Cheers and sorry to complicate things.

  3. Paul_KY

    Paul_KY New Member Webmaster

    Good advice.

    Wink Wink

Featured Resources (View All)

Thread Status:
Not open for further replies.

Share This Page