301 REdirect! Proper Code/ WAy To Do it

Discussion in 'Black Hat SEO' started by greggggg, Mar 9, 2012.

  1. greggggg

    greggggg Regular Member

    Apr 24, 2011
    Likes Received:
    I want to redirect everything on my one domain to a new domain.

    I have a wordpress blog with posts that I want to redirect to a new website with a complete different site structure to pass on the juice and the rankings.

    Should I be redirecting every page that I have to the new money site? What is the strategy for that?

    So oldsite.com/post1 --> newsite.com
    oldsite.com/post2 --> newsite.com
    oldsite.com/post3 --> newsite.com

    What code should I be using so that all of my posts and the main site would point to the new site with different structure and that rankings will pass on.
  2. blackberry

    blackberry Power Member

    Apr 26, 2009
    Likes Received:
    Making money
    Planet Earth
    The best way to do it is with htaccess.:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) [newdomain.com...] [R=301,L]

    The above tells the old domain to go to the new domain weither www. not is included. Adjsut to your requirements. Or if thats too hard for you, if you have cPanel just go to Redirects and then select the website you are redirecting. Then in the "redirects to" box enter the domain of the website you want people to end up on.

    Ensure that "Redirect with or without www" is selected (it is by default).

    Then click hit ADD

    Then your done and all the structure and ranking etc will pass on to the new domain.