www. and pagerank?

Discussion in 'Websites' started by MamboCube, Feb 21, 2006.

  1. #1
    Hi guys,

    i was just looking at what page rank my site has when i found that it has a rank of 4 when i put www. in front of it. But with no www. it has no page rank? Why?

    i know this might be a silly question but im new to this whole page rank thing.

    also, will it make any difference to what url i should use for links?
     
    MamboCube, Feb 21, 2006 IP
  2. fsmedia

    fsmedia Prominent Member

    Messages:
    5,163
    Likes Received:
    262
    Best Answers:
    0
    Trophy Points:
    390
    #2
    because www. is a subdomain to domain.com (technically 2 different sites). I forward all my visitors to www.domain.com from domain.com so they all get the same URL, no matter what (this includes search engines). It doesn't create duplicate content, but this does minimize the confusion for search engines.
     
    fsmedia, Feb 21, 2006 IP
  3. Kaediem

    Kaediem Well-Known Member

    Messages:
    1,128
    Likes Received:
    118
    Best Answers:
    0
    Trophy Points:
    150
    #3
    is that something you do in .htaccess?

    how?

    Lisa
     
    Kaediem, Feb 21, 2006 IP
  4. fsmedia

    fsmedia Prominent Member

    Messages:
    5,163
    Likes Received:
    262
    Best Answers:
    0
    Trophy Points:
    390
    #4
    a little digging on Google should help...
     
    fsmedia, Feb 21, 2006 IP
  5. Gt1

    Gt1 Banned

    Messages:
    131
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well my is the opposite because if i take out the www. i get a better PageRank.
     
    Gt1, Feb 21, 2006 IP
  6. mddv

    mddv Well-Known Member

    Messages:
    491
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    128
    #6
    well yea the www. is classified as a subdomain of your domain name. How you market your site? with the www. or without?
     
    mddv, Feb 21, 2006 IP
  7. Roman

    Roman Buffalo Tamerâ„¢

    Messages:
    6,217
    Likes Received:
    592
    Best Answers:
    0
    Trophy Points:
    310
    #7
    I use the non www and here is what I put in my .htaccess:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^mydomain\.com
    RewriteRule ^.*$ http://mydomain.com%{REQUEST_URI} [R=301,L]

    This way if someone types in www.mydomain.com it goes to mydomain.com.
     
    Roman, Feb 21, 2006 IP
    Kaediem likes this.
  8. Kaediem

    Kaediem Well-Known Member

    Messages:
    1,128
    Likes Received:
    118
    Best Answers:
    0
    Trophy Points:
    150
    #8
    Thank you! I can search google as well as the next person but I also found a helpful forum to ask questions at... appreciate the answer.

    Lisa
     
    Kaediem, Feb 21, 2006 IP
  9. MamboCube

    MamboCube Peon

    Messages:
    242
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #9
    and this technique isnt a problem for search engines?
     
    MamboCube, Feb 22, 2006 IP
  10. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Its all done before the page is served so there is no way for them to know and there is no reason to mind even if they did know.

    Google actually recommend you do this for some of their services. Their mapping API only works for the exact site you regsitered the API key for.

    If you register mysite.com for example and try to use the maps on www.mysite.com they fail. Google say you should redirect to the correct domain to avoid this.
     
    mad4, Feb 22, 2006 IP
  11. MamboCube

    MamboCube Peon

    Messages:
    242
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #11
    ok great, so i just use the code above in an .htaccess file, and place it in my root directory?
     
    MamboCube, Feb 22, 2006 IP
  12. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Yep. Then test it to check it works.
     
    mad4, Feb 22, 2006 IP
  13. drhfinegifts

    drhfinegifts Peon

    Messages:
    368
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Great post and info! Never know what you might find in this forum!
     
    drhfinegifts, Feb 23, 2006 IP