any difference between http:// and http://www. ?

Discussion in 'Domain Names' started by AznRico, Jul 20, 2008.

  1. #1
    Does the domain containing www. in front have anything to do with PR and link popularity? Are there any advantages of containing the www. or not?
     
    AznRico, Jul 20, 2008 IP
  2. abercrombie

    abercrombie Peon

    Messages:
    654
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    no difference. but it's good to promote only 1 so you need to choose since they're treated as different sites in Google. the general public is programed for www.domain.com to i would opt for the www.
     
    abercrombie, Jul 20, 2008 IP
  3. kohashi

    kohashi Well-Known Member

    Messages:
    1,198
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    140
    #3
    can always redirect one to the other using 301 to save your PR
     
    kohashi, Jul 20, 2008 IP
  4. AznRico

    AznRico Well-Known Member

    Messages:
    230
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #4
    oh really? could you briefly tell me how to do that? I already have my main domain redirecting to /forums
     
    AznRico, Jul 21, 2008 IP
  5. kohashi

    kohashi Well-Known Member

    Messages:
    1,198
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    140
    #5
    google '301 redirect' should tell you how to do it properly and doing it for http:// and not WWW might be tricky, i dont remember off top of my head to be honest
     
    kohashi, Jul 21, 2008 IP
    wisdomtool likes this.
  6. AznRico

    AznRico Well-Known Member

    Messages:
    230
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #6
    hmm theres no www to http:// however there IS http:// to www. when link building i have only used http:// and not www. since I wanted to only promote one... should i redirect to www.?
     
    AznRico, Jul 21, 2008 IP
  7. kohashi

    kohashi Well-Known Member

    Messages:
    1,198
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    140
    #7
    digg sends to http from www. so it can be done
     
    kohashi, Jul 21, 2008 IP
  8. litereview.com

    litereview.com Banned

    Messages:
    124
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I usually using .htaccess like this to handle this issue

    
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^www.domain.com [NC]
    RewriteRule ^(.*) http://www.domain.com/$1 [L,R=301]
    
    Code (markup):
     
    litereview.com, Jul 21, 2008 IP
  9. grungee

    grungee Well-Known Member

    Messages:
    262
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    108
    #9
    What you really need to do is look at where your links are pointing to are the majority www.domain.com or domain.com. That should help you decide which way to 301 redirect.

    The one I use in my .htaccess file is, this only works for apache hosting and not iis or another web server.

    for domain.com to www.domain.com I use

    RewriteEngine On

    RewriteCond %{HTTP_HOST} ^domain.com$ [NC]
    RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
     
    grungee, Jul 21, 2008 IP
  10. AznRico

    AznRico Well-Known Member

    Messages:
    230
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #10
    okay new question... if i have my main domain domain.net redirected to domain.net/forums in the cpanel, should use 301 redirect from domain.net to domain.net/forums as well? or just domain.net --> www.domain.net which redirects to www.domain.net/forums?

    okay.. thats kinda confusing, please let me know if i have to reword this

    EDIT: after looking at my .htaccess these codes were found

    RewriteCond %{HTTP_HOST} ^url.net$ [OR]
    RewriteCond %{HTTP_HOST} ^www.url.net$
    RewriteRule ^/?$ http://url.net/forums [R=301,L]
    
    RewriteCond %{HTTP_HOST} ^url.net$ [OR]
    RewriteCond %{HTTP_HOST} ^www.url.net$
    RewriteRule ^index.php$ http://url/forums [R=301,L]
    
    Code (markup):
    does this mean that both www. and http is redirected to http://url.net/forums?

    therefore I do not have to worry about anything?
     
    AznRico, Jul 21, 2008 IP
  11. grungee

    grungee Well-Known Member

    Messages:
    262
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    108
    #11
    I would do it in 2 steps

    RewriteEngine On

    RewriteCond %{HTTP_HOST} ^domain.com$ [NC]
    RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

    RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
    RewriteRule ^(.*)$ http://www.domain.com/forum/$1 [R=301,L]

    What this does is first if the domain is without the www then it redirects. Then it checks to see if the domain is www and redirects it to the forum.

     
    grungee, Jul 21, 2008 IP
  12. AznRico

    AznRico Well-Known Member

    Messages:
    230
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #12
    okay, so that makes more sense actually.. should i just replace my code with the one you have provided?
     
    AznRico, Jul 21, 2008 IP
  13. grungee

    grungee Well-Known Member

    Messages:
    262
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    108
    #13
    Does your old code work?

    I see it also redirects the index.php to the forums which is a good idea as well. If it works then I would say leave it alone.
     
    grungee, Jul 21, 2008 IP
  14. AznRico

    AznRico Well-Known Member

    Messages:
    230
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #14
    okay everything works well! thanks for the help guys
     
    AznRico, Jul 22, 2008 IP