Redirect to a New Page

Discussion in 'HTML & Website Design' started by expertwebdesigner, Sep 4, 2009.

  1. #1
    If you need to redirect your visitors to a new page, this HTML redirect code may be just what you're looking for.

    When designing a web site, many times you must change the location of a web page. However, if the page is popular, your visitors may have already linked to it. In addition, the Search Engines have most-likely already indexed the page.

    For this reason, it is best to replace your page with a new page that will redirect your visitors to the new page. This provides a great way to provide your visitors with the information they were looking for and prevent you from losing your traffic.

    However, when using this HTML redirect code, please ensure that you don't use it to trick the Search Engines, as this could get your web site banned. It is always best to work hard and learn quality ways in which to drive traffic to your web site.

    Place the following HTML redirect code between the <HEAD> and </HEAD> tags of your HTML code.

    <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html">

    The above HTML redirect code will redirect your visitors to another web page instantly. The content="0; may be changed to the number of seconds you want the browser to wait before redirecting.
     
    expertwebdesigner, Sep 4, 2009 IP
  2. AdscendJeremy

    AdscendJeremy Peon

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    For a more SEO-friendly way, you can use a 301 redirect header.
     
    AdscendJeremy, Sep 4, 2009 IP
  3. xopacuo

    xopacuo Peon

    Messages:
    69
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try using .htaccess
     
    xopacuo, Sep 5, 2009 IP
  4. J32

    J32 Peon

    Messages:
    94
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I think a 301 redirect would be the better choice. per cpanel or direct in .htaccess
     
    J32, Sep 5, 2009 IP
  5. Steve Powers

    Steve Powers Peon

    Messages:
    1,196
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Both 301 redirection and .htaccess file modification are ok.But .htaccess file modification always appears in the case of using shared web hosting.
     
    Steve Powers, Sep 5, 2009 IP