How to Redirect?

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

  1. maildigger

    maildigger Power Member

    Joined:
    Jan 30, 2009
    Messages:
    766
    Likes Received:
    101
    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:
    210
    Code:
    RewriteCond %{THE_REQUEST} ^.*/oldpage.html
    RewriteRule ^(.*)oldpage.html$ http://www.newwebsite.com/$1 [R=301,L]
     
  3. Rogar

    Rogar Registered Member

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

    Realign02 Regular Member

    Joined:
    Aug 13, 2007
    Messages:
    389
    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.