www and no www show differnt pagerank

Discussion in 'Black Hat SEO' started by jeffdell, Jun 16, 2010.

  1. jeffdell

    jeffdell Newbie

    Joined:
    Feb 9, 2010
    Messages:
    19
    Likes Received:
    0
    Some of my sites now have differnt pageranks for www, and no www. Im planning on selling all these domains and need a way to make sure that the page rank is the same on both, so people will buy them.

    Whats the best way to do that? If I set up a redirect in the htacsess file would that fix the problem?

    Anyone have any expirence fixing this problem?
     
  2. *zap*

    *zap* Regular Member

    Joined:
    Apr 7, 2008
    Messages:
    349
    Likes Received:
    98
    Occupation:
    none
    Location:
    Uk
    htaccess
     
  3. jeffdell

    jeffdell Newbie

    Joined:
    Feb 9, 2010
    Messages:
    19
    Likes Received:
    0
    have you done it and it worked?
     
  4. summertime1

    summertime1 Junior Member

    Joined:
    Jun 11, 2010
    Messages:
    130
    Likes Received:
    22
    It will work because there will only be one site - either www or no www.
    just add the following lines in a .htaccess and upload it in your webroot:

    HTML:
    RewriteEngine on
      RewriteCond %{HTTP_HOST} !^www\.domain\.tld$
      RewriteRule ^(.*)$ http://www.domain.tld/$1 [L,R=301]