different pr

Discussion in 'Search Engine Optimization' started by bentong, Jun 1, 2005.

  1. #1
    www.mysite.com & mysite.com have a different pagerank.

    any ideas on how to redirect mysite.com to www.mysite.com.

    does pr & ibl will also be passed with this redirection.
     
    bentong, Jun 1, 2005 IP
  2. yfs1

    yfs1 User Title Not Found

    Messages:
    13,798
    Likes Received:
    922
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need to use a 301 as right now they are two different sites. When you do that all the links will follow.
     
    yfs1, Jun 1, 2005 IP
  3. ResaleBroker

    ResaleBroker Active Member

    Messages:
    1,665
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    90
    #3
    If you're on an Apache Server with mod_rewrite configured you could use this code in your .htaccess file:
    RewriteEngine on 
    RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com [NC]
    RewriteRule ^(.*) http://www.yourdomain.com/$1 [L,R=301]
    
    Code (markup):
     
    ResaleBroker, Jun 1, 2005 IP
    vagrant likes this.
  4. dct

    dct Finder of cool gadgets

    Messages:
    3,132
    Likes Received:
    328
    Best Answers:
    0
    Trophy Points:
    230
    #4
    Thanks RB, I've been meaning to do that for a while but it's a sod of a thing to search for on Google.
     
    dct, Jun 1, 2005 IP
  5. bentong

    bentong Banned

    Messages:
    3,543
    Likes Received:
    257
    Best Answers:
    0
    Trophy Points:
    0
    #5
    does anybody know of a site where it uses a 301? wherein after typing mysite.com it will then redirected to www.mysite.com

    thanks for the info. ;)
     
    bentong, Jun 1, 2005 IP
  6. ResaleBroker

    ResaleBroker Active Member

    Messages:
    1,665
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    90
    #6
    I do this will "all" of my sites. For instance, ResaleBroker
     
    ResaleBroker, Jun 1, 2005 IP
  7. bentong

    bentong Banned

    Messages:
    3,543
    Likes Received:
    257
    Best Answers:
    0
    Trophy Points:
    0
    #7
    again, thanks RB.
     
    bentong, Jun 1, 2005 IP
  8. miko67

    miko67 Well-Known Member

    Messages:
    769
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    120
    #8
    miko67, Jun 1, 2005 IP
  9. dct

    dct Finder of cool gadgets

    Messages:
    3,132
    Likes Received:
    328
    Best Answers:
    0
    Trophy Points:
    230
    #9
    RewriteEngine on 
    RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com [NC]
    RewriteRule ^(.*) http://www.yourdomain.com/$1 [L,R=301]
    Code (markup):
    Thate code also rewrites subdomains
    e.g. subdomain.domain.org -> www .subdomain.domain.org
    Is there an easy modification so that it only redirects the root domain (without the www).

    Thanks
     
    dct, Jun 1, 2005 IP