Is www, differnet than http://xxx.com

Discussion in 'Search Engine Optimization' started by ManchesterTech, May 12, 2008.

  1. #1
    I recently submitted my site and can view stats in my Google webmaster tool...

    But I did it twice to see which one was correct...

    But here'e the thing..

    My stats only show for http://xxxxxxxxx.xom and the www.xxxxx.com version shows nothing even though it does say it was crawled more recently than the http://xxxx.com account??

    and the http://xxxx.com shows errors on one of the links in my blog, but the www.xxx.com version shows no errors in the URL's although it doesn't seem to be gathering any data.... i'm confused..

    Why is this and what's the difference, I thought they would just be the same???

    McrTech
     
    ManchesterTech, May 12, 2008 IP
  2. dgxshiny

    dgxshiny Greenhorn

    Messages:
    65
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    23
    #2
    Yes, they are looked at differently. It is good practice to redirect all traffic from one to the other (xxx.com to www.xxx.com).
     
    dgxshiny, May 12, 2008 IP
  3. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #3
    mod_rewrite is your friend!
     
    ServerUnion, May 12, 2008 IP
  4. ManchesterTech

    ManchesterTech Peon

    Messages:
    149
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    But what about PageRank in the future???.. which one will my content qualify for???
     
    ManchesterTech, May 12, 2008 IP
  5. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #5
    The whole concept of redirecting one to the other is to push all Pagerank value and backlink value to once specific URL set. Here is a great example, one site gives a backlink to domain.com and another to www.domain.com; guess what.... those are considered 2 seperate pages and the value is now divided between them. Use the below code in your .htaccess file to do the proper redirection; change yourdomain and the extension to yours.

    Redirect non-www to www

    
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC]
    RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]
    
    Code (markup):
    Redirect www to non-www

    
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www.yourdomain\.com$ [NC]
    RewriteRule ^(.*)$ http://yourdomain.com/$1 [R=301,L] 
    
    Code (markup):
    And no, neither format has more value than the other, it's strictly cosmetic when it comes to which one to choose.
     
    astup1didiot, May 12, 2008 IP
  6. ManchesterTech

    ManchesterTech Peon

    Messages:
    149
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    thanks guys.... but now I'm even more confused....

    could you possibly show the exact code above, but substitute what you said for this: www.xxxx.com only, so I know exactly what to change... apologies for my ignorance... I onyl ever used free blgos before this domain, and now this..lol...

    and also, where in my .htaccess do I put this code?

    Thankyou very much, you guys will get added rep when I figure out how ;-)

    McrTech
     
    ManchesterTech, May 12, 2008 IP
  7. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #7
    
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^xxxx\.com$ [NC]
    RewriteRule ^(.*)$ http://www.xxxx.com/$1 [R=301,L]
    
    Code (markup):
    Anywhere in the .htaccess is fine.
     
    astup1didiot, May 12, 2008 IP
  8. ManchesterTech

    ManchesterTech Peon

    Messages:
    149
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    and do I keep the $ and $1 bits in there too?

    so I pretty much just substitute the xxx.com bits for my domain, yep?...

    Thankyou very much, you have no idea how much this has been troubling me today...

    McrTech
     
    ManchesterTech, May 12, 2008 IP
  9. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #9
    Yes, those are variables to redirect all the URLs, they must stay intact or it will not work properly.
     
    astup1didiot, May 12, 2008 IP
    ManchesterTech likes this.
  10. ManchesterTech

    ManchesterTech Peon

    Messages:
    149
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Dude... I just whacked it in there.... you flippin rock!!!!!!!!

    superstar, you are

    mcrTech
     
    ManchesterTech, May 12, 2008 IP
  11. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #11
    As Nickleback says "Aye Aye I wanna be a rockstar!" ;)
     
    astup1didiot, May 12, 2008 IP
  12. ManchesterTech

    ManchesterTech Peon

    Messages:
    149
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I PMed you my last question dude

    Kindly

    Mcr
     
    ManchesterTech, May 12, 2008 IP
  13. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #13
    Gotcha, replied it already. Best of luck.
     
    astup1didiot, May 12, 2008 IP
  14. Rico760

    Rico760 Guest

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    thanks guys!
     
    Rico760, May 12, 2008 IP
  15. professionalseo

    professionalseo Banned

    Messages:
    599
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #15
    www and http without the www are viewed as 2 completely different URL's by the search engines. I wrote an SEO article about this on my SEO blog if you feel like looking it over.
     
    professionalseo, May 13, 2008 IP
  16. n3o

    n3o Well-Known Member

    Messages:
    1,241
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    160
    #16
    you can also set the preferred one in google webmaster tools
     
    n3o, May 13, 2008 IP