301 Redirect for Expired Domain, Not Wordpress

Discussion in 'White Hat SEO' started by MatthewMagicMan, Jan 26, 2013.

  1. MatthewMagicMan

    MatthewMagicMan BANNED BANNED

    Joined:
    Dec 20, 2009
    Messages:
    49
    Likes Received:
    11
    Hey there,

    Does anyone have the code to redirect all pages (besides the index page) that would still have links pointing to them for an expired domain?

    For Wordpress, I use Link Juice Keeper but I have some HTML sites that I need this redirect done for to keep the link juice from long tail pages I'm not rebuilding.

    Help is appreciated,

    Matt
     
  2. milian

    milian Power Member

    Joined:
    Jan 9, 2010
    Messages:
    515
    Likes Received:
    69
    Occupation:
    SEO stuff
    Location:
    Around
    try this:

    Code:
    RewriteCond %{REQUEST_URI} !^/$ 
    RewriteRule ^(.*)$ http://www.newsite.com/$1 [L,R=301]