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

How to Redirect?

Discussion in 'White Hat SEO' started by maildigger, Oct 27, 2011.

  1. maildigger

    maildigger Power Member

    Joined:
    Jan 30, 2009
    Messages:
    558
    Likes Received:
    60
    Location:
    EU
    I have an old php website with +500 deep urls which are getting some decent Google traffic. I'm switching to wordpress and new url structure.

    How should I redirect this? I want to redirect all the current traffic + linkjuice to the main url.
     
  2. alex-19841

    alex-19841 Regular Member

    Joined:
    Jan 3, 2010
    Messages:
    318
    Likes Received:
    209
    Home Page:
    Code:
    RewriteCond %{THE_REQUEST} ^.*/oldpage.html
    RewriteRule ^(.*)oldpage.html$ http://www.newwebsite.com/$1 [R=301,L]
     
  3. Rogar

    Rogar Newbie

    Joined:
    Nov 6, 2011
    Messages:
    49
    Likes Received:
    4
    Thanks for the tip
     
  4. Realign02

    Realign02 Regular Member

    Joined:
    Aug 13, 2007
    Messages:
    387
    Likes Received:
    232
    Occupation:
    Full time IMER
    Log into your cpanel -> domains -> Redirects

    Set it to your new site, if you need help there is a video tutorial on the page (redirects page).

    That's the easiest way to do it.