Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: What is the difference between http://url and http://www.url ?

  1. #1
    hendricius's Avatar
    hendricius is offline The Interwebs are mine!
    Join Date
    Jul 2009
    Location
    Hamburg, Germany
    Posts
    527
    Blog Entries
    1
    Thanks
    21
    Thanked 50 Times in 37 Posts

    What is the difference between http://url and http://www.url ?

    Hi guys

    is there any difference between giving the name of a site in the browser's address bar in the format


    http://your site name

    http://www.yoursitename



    is there any issue related to cookies?

    .
    Follow me on Twitter: @hendricius

  2. #2
    bogart's Avatar
    bogart is offline Super Moderator
    Join Date
    May 2009
    Location
    New York
    Posts
    3,772
    Thanks
    1,886
    Thanked 776 Times in 609 Posts
    There shouldn't be any difference between the www and non-www version of the url. However, using both could cause canonical issues where the search engines see the two urls as separate domains. Use one version to avoid problems. You can fix canonical issues with a 301 permanent redirect.

  3. #3
    Kovich's Avatar
    Kovich is offline Community Guardian
    Join Date
    Jan 2009
    Location
    Philadelphia, Pennsylvania
    Posts
    1,797
    Blog Entries
    30
    Thanks
    453
    Thanked 420 Times in 279 Posts
    I don't know of any real difference, but you should select one and then edit your .htaccess file to redirect one to the other - that way all traffic gets taken to whichever you choose.

    For example, let's take a look at my latest blog...
    I like having the www. in my URLs so I added the code below to my .htaccess so that if you visit http:// runningonlinebusiness .com/ rather than http:// www. runningonlinebusiness .com/ you are redirected to the www. form.

    PHP Code:
    RewriteEngine On
    RewriteCond 
    %{HTTP_HOST} !^www\.SITENAMEHERE\.com [NC]
    RewriteRule ^(.*)$ http://www.SITENAMEHERE.com/$1 [R=301,L] 

  4. Thanked by:

    bogart (17 August, 2009)

  5. #4
    CoreyFreeman's Avatar
    CoreyFreeman is offline Experienced Net Builder
    Join Date
    Jul 2009
    Location
    NC, USA
    Posts
    692
    Thanks
    40
    Thanked 55 Times in 47 Posts
    Quote Originally Posted by hendricius View Post
    Hi guys
    is there any difference between giving the name of a site in the browser's address bar in the format

    http://your site name
    http://www.yoursitename

    is there any issue related to cookies?
    Yes. Vbulletin does this more than any other software I know. If you sign into a website at http://site.com and then go to http://www.site.com and they are experiencing canonical urls, you won't be able to login permanently.

  6. Thanked by:

    hendricius (18 August, 2009)

  7. #5
    farooqaaa's Avatar
    farooqaaa is offline NB Addict
    Join Date
    Jul 2009
    Location
    this.Location.toString();
    Posts
    65
    Thanks
    11
    Thanked 25 Times in 15 Posts
    is there any issue related to cookies?
    Yes, there is an issue. Try removing the "www" from netbuilders.com and then see. You'll be logged out.

    The best solution to this is posted by Kovich:

    Quote Originally Posted by Kovich View Post
    I don't know of any real difference, but you should select one and then edit your .htaccess file to redirect one to the other - that way all traffic gets taken to whichever you choose.

    For example, let's take a look at my latest blog...
    I like having the www. in my URLs so I added the code below to my .htaccess so that if you visit http:// runningonlinebusiness .com/ rather than http:// www. runningonlinebusiness .com/ you are redirected to the www. form.

    PHP Code:
    RewriteEngine On
    RewriteCond 
    %{HTTP_HOST} !^www\.SITENAMEHERE\.com [NC]
    RewriteRule ^(.*)$ http://www.SITENAMEHERE.com/$1 [R=301,L] 

  8. Thanked by:

    bogart (17 August, 2009), hendricius (18 August, 2009)

  9. #6
    metros's Avatar
    metros is offline Newbie Net Builder
    Join Date
    Aug 2009
    Posts
    66
    Thanks
    1
    Thanked 8 Times in 8 Posts

    Lightbulb

    Quote Originally Posted by bogart View Post
    There shouldn't be any difference between the www and non-www version of the url. However, using both could cause canonical issues where the search engines see the two urls as separate domains. Use one version to avoid problems. You can fix canonical issues with a 301 permanent redirect.
    As Bogart mentioned,
    It wont really affect.. else, You play with them and I've seen Google consider it as self-duplicate.

    So the 301 meant to make sure you wont give Google any chance to count your domain twice & Even if peoples link to both www or without, It wont make any different.

  10. #7
    bogart's Avatar
    bogart is offline Super Moderator
    Join Date
    May 2009
    Location
    New York
    Posts
    3,772
    Thanks
    1,886
    Thanked 776 Times in 609 Posts
    I believe that the biggest issue with canonical problems is that the search engines may give you a duplicate content penalty. Google is pretty good is solving canonical issues on its own.

    I found an interesting article at searchengineland that Google, Yahoo, and Microsoft are supporting a new canonical tag to help avoid duplicate content.

    <link rel="canonical" href="">

  11. #8
    hendricius's Avatar
    hendricius is offline The Interwebs are mine!
    Join Date
    Jul 2009
    Location
    Hamburg, Germany
    Posts
    527
    Blog Entries
    1
    Thanks
    21
    Thanked 50 Times in 37 Posts
    Quote Originally Posted by Sneakyheathen View Post
    Yes. Vbulletin does this more than any other software I know. If you sign into a website at http://site.com and then go to http://www.site.com and they are experiencing canonical urls, you won't be able to login permanently.
    Quote Originally Posted by farooqaaa View Post
    Yes, there is an issue. Try removing the "www" from netbuilders.com and then see. You'll be logged out.

    The best solution to this is posted by Kovich:
    Thank you very much guys..I came across the same issues you were talking about and that's the reason behind this thread. I just tried updating my forum with the above information to get redirected, and to solve this issue. Thanks once again.
    Follow me on Twitter: @hendricius

  12. #9
    bogart's Avatar
    bogart is offline Super Moderator
    Join Date
    May 2009
    Location
    New York
    Posts
    3,772
    Thanks
    1,886
    Thanked 776 Times in 609 Posts

  13. #10
    gloson's Avatar
    gloson is offline Net Builder
    Join Date
    Apr 2009
    Location
    Malaysia
    Posts
    153
    Thanks
    5
    Thanked 2 Times in 2 Posts
    By the way, to choose whether your WORDPRESS blog has a "WWW" or not, go to http://www.(yourblog).com/wp-admin/options-general.php and change both Blog and Wordpress URLs from http://(yourblog).com to http://www.(yourblog).com. I hope this helps!
    Gloson Blog - How-tos, tips, and more!
    Poetry Talents - Funny poetry for kids!

    Twitter - @Gloson

Page 1 of 2 12 LastLast

Similar Threads

  1. Tell me about http://healthandfitnesslife.com
    By Benleem in forum Site Reviews
    Replies: 9
    Last Post: 2 April, 2010, 12:37 PM
  2. http://www.thechurchofgoogle.org/
    By Hellas in forum Entertainment
    Replies: 2
    Last Post: 24 September, 2009, 18:06 PM
  3. What is the main difference between http and https?
    By hendricius in forum Building
    Replies: 2
    Last Post: 22 July, 2009, 19:04 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •