1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redirect a Web Page

Discussion in 'Black Hat SEO' started by NaveenKumar47, Aug 22, 2014.

  1. NaveenKumar47

    NaveenKumar47 Newbie

    Joined:
    Jul 29, 2014
    Messages:
    20
    Likes Received:
    0
    How to Automatically Redirect a Web Page to Another URL? thanx
     
  2. Schvamp

    Schvamp Power Member

    Joined:
    Feb 13, 2012
    Messages:
    684
    Likes Received:
    549
    Location:
    Hogwarts
  3. TheLinksLab

    TheLinksLab Registered Member

    Joined:
    Jun 27, 2014
    Messages:
    79
    Likes Received:
    35
    Occupation:
    Various Web Projects
    Location:
    Swansea, Wales, UK
    There are a few ways...

    You can do either a Meta Redirect:
    Put this in the head section of your page:
    Code:
    <meta http-equiv="refresh"content="0; url=http://example.com/yournewpage.html"/>
    Or with javascrpt:
    Code:
    <script language="javascript">  
    window.location = "http://example.com/yournewpage.html";
    </script>
    Or a 301 redirect with a .htaccess file:
    Code:
    Redirect 301 /youroldfile.html http://example.com/yournewpage.html
    The choice is yours!
     
    • Thanks Thanks x 1