Google cach for www and without

Discussion in 'Google' started by gift-online, Apr 26, 2008.

  1. #1
    gift-online, Apr 26, 2008 IP
  2. bestvni

    bestvni Active Member

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    56
    #2
    url without www is better than with one. when you exchange link with other website. it's also better without www

    good luck!
     
    bestvni, Apr 26, 2008 IP
  3. gift-online

    gift-online Well-Known Member

    Messages:
    2,359
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    115
    #3
    thanks for your oppinion:)
    I thought that good webmasters have to care that http://www and http:// are promoting in the same way

     
    gift-online, Apr 26, 2008 IP
  4. rainborick

    rainborick Well-Known Member

    Messages:
    424
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    120
    #4
    There is absolutely no practical difference between using the www. prefix and not using it. The choice is yours. The key is to pick one version and stick to it. Google can be slow to merge the two versions of these URLs in their index, which is why it is universally recommended that you install a server code 301 redirect for all requests for the "bad" version to the "good" version once you have selected one for your site. And you should also select a Preferred version in the Webmaster Tools console. Doing so prevents problems with duplicate content issues. But even without the redirect in place and no preference set in the Webmaster Tools, Google would eventually work out a single version on its own - as do all of the other search engines. Then what version other sites use in their links to your site won't matter at all.
     
    rainborick, Apr 26, 2008 IP
  5. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #5
    First, it doesn't matter which version you use; neither has more value than the other. What can happen is you can get duplicate content issues and improper Pagerank\SEO weight. What happens is search engines consider domain.com and www.domain.com to be two different web pages. So if some of your backlinks point to one and some to the other your effectively not getting all your link juice to one specific location. You should 301 redirect the non-www to the www URL. Below is the code to do this via your .htaccess file, make sure to change yourdomain.com to your actual domain name.


    
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC]
    RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L] 
    
    
    Code (markup):
     
    astup1didiot, Apr 26, 2008 IP
  6. angilina

    angilina Notable Member

    Messages:
    7,824
    Likes Received:
    186
    Best Answers:
    0
    Trophy Points:
    260
    #6
    Yeah, "ssandecki" is right. You should redirect the non www to www URL.
     
    angilina, Apr 26, 2008 IP
  7. BWC

    BWC Peon

    Messages:
    67
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I take it one step beyond to avoid duplicate content & redirect the index pages of all the directories, and subdirectories to the root of each's directory. So that http://www.republican.inet-publishing.com/texas/index.php is redirected to http://www.republican.inet-publishing.com/texas/ (hint, I am also doing it with any index.html also in this example, I have both in some sites), otherwise G could end up indexing both http://www.democrat.inet-publishing.com/index.php and http://www.democrat.inet-publishing.com/ as seperate, but identical pages, and people linking to both will split the PR, also a loss.

    Do not leave to chance how search engines spider your site, force them to see it correctly.


    RewriteEngine on
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.(html|php)\ HTTP/ 
    RewriteRule ^(([^/]+/)*)index\.(html|php)$ http://www.sample.com/$1 [R=301,L]
    RewriteCond %{HTTP_HOST} ^sample\.com 
    RewriteRule (.*) http://www.sample.com/$1 [R=301,L]
    Code (markup):
     
    BWC, Apr 26, 2008 IP
  8. metros

    metros Notable Member

    Messages:
    3,978
    Likes Received:
    373
    Best Answers:
    0
    Trophy Points:
    245
    #8
    Hi,
    I all ways prefer without, just my feeling about better for SEO.
     
    metros, Apr 26, 2008 IP
  9. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #9
    You do realize the code you just provided will not work with php variable urls attached to the index.php file; I think you need to practice your mod-rewrite skills. ;)

    
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ 
    RewriteRule ^index\.php$ http://www.example.com/ [R=301,L] 
    
    Code (markup):
     
    astup1didiot, Apr 26, 2008 IP
  10. BWC

    BWC Peon

    Messages:
    67
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #10
     
    BWC, Apr 26, 2008 IP
  11. Trusted Writer

    Trusted Writer Banned

    Messages:
    1,370
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    160
    #11
    I do agree with this point of view.

    While some domains sounds great without www's, some others look more professional with them.
     
    Trusted Writer, Apr 26, 2008 IP
  12. gift-online

    gift-online Well-Known Member

    Messages:
    2,359
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    115
    #12
    thanks to all of you for answers:)
     
    gift-online, Apr 27, 2008 IP