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

301 redirect from non-www to www but google ranking non-www

Discussion in 'Black Hat SEO' started by coding.solo, Jan 12, 2011.

  1. coding.solo

    coding.solo Newbie

    Joined:
    Dec 22, 2010
    Messages:
    37
    Likes Received:
    9
    As stated, I have a 301 redirect from non-dubdubdub to dubdubdub but google is ranking non-dubdubdub . My root level .htaccess is:

    Code:
    RewriteCond %{HTTP_HOST} ^domainDOTcom [NC]
    RewriteRule ^(.*)$ hxxp:SLASHSLASHdubdubdub.domainDOTcomSLASH$1 [L,R=301]
     
  2. semilar

    semilar Regular Member

    Joined:
    Sep 28, 2010
    Messages:
    264
    Likes Received:
    61
    Sign up for google webmaster tools for www and non www. set the preferred url up in both accounts. wait... wait some more... and wait a long time more... voila, done. :)
    A 301 will maybe do the trick on it's own, but could take longer.

    Takes forever for google to change it.
     
    • Thanks Thanks x 1