Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. What is the difference b/w http://www.something.com and http://something.com

What is the difference b/w http://www.something.com and http://something.com

Scheduled Pinned Locked Moved The Lounge
comquestion
14 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gr8tushar
    wrote on last edited by
    #1

    can some one tell me the difference b/w of them.

    M S P 3 Replies Last reply
    0
    • G gr8tushar

      can some one tell me the difference b/w of them.

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      www. ? ;P Me think that the browser will add the missing elements or the URL when it's trying to resolve the address; or maybe do a quick search and return the first find. for example, in firefox, if you type codeproject, it will take you here.


      Maximilien Lincourt Your Head A Splode - Strong Bad

      P H 2 Replies Last reply
      0
      • G gr8tushar

        can some one tell me the difference b/w of them.

        S Offline
        S Offline
        Steve McLenithan
        wrote on last edited by
        #3

        www. is a subdomain of something.com I still don't get why everyone started using www.something.com anyway. To help the ignorant public remember websites?

        This demographic will quite happily click on shiny things however:laugh:

        Found on Bash.org [erno] hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is.

        S Q H D 4 Replies Last reply
        0
        • G gr8tushar

          can some one tell me the difference b/w of them.

          P Offline
          P Offline
          Paul Watson
          wrote on last edited by
          #4

          Not a full answer as I don't know all the technical terms but... The http part is the protocol. For instance ftp://something.com would communicate with that domain using the ftp protocol. https is an http protocol connection but secured using SSL (normally). There are many other protocols but those are the three major ones. something.com is the full domain name. The COM part is the TLD (top level domain e.g. co.uk, co.za, net, org etc.) This is registered with a domain name provider and mapped to some nameserver. [Edit] Anders pointed out that I was incorrect about the term alias, it is in fact a sub-domain. So in the following think sub-domain and not alias. I think this also changes the "setup on the server" bit.[/Edit] The www of www.something.com is as far as I remember called an alias. It is setup on the server that the domain points to. You can have as many aliases as you wish, or none at all. In this case www stands for world wide web and has just become some kind of agreed on standard. It is not neccesary but it is a good idea to have. For instance some servers will, confusingly, have the following: http://ftp.something.com which is like a ftp connection but over the http protocol. Useful but confusing. I don't know if there is a limit but you can string aliases together e.g. http://subalias1.subalias2.subalias3.something.com is valid. Depending on your server software you can have aliases pointing to different folders/directories on your server. Or they can all point to the same one or a mixture. e.g. http://www.something.com and http://something.com will generally point to the same place as many of us like to skip the www bit (for me, servers that balk at skipping the www bit are a PITA). Hope that helps :) regards, Paul Watson South Africa The Code Project South-East Asia Disaster: How you can help Pope Pius II said "The only prescription is more cowbell. "

          A 1 Reply Last reply
          0
          • M Maximilien

            www. ? ;P Me think that the browser will add the missing elements or the URL when it's trying to resolve the address; or maybe do a quick search and return the first find. for example, in firefox, if you type codeproject, it will take you here.


            Maximilien Lincourt Your Head A Splode - Strong Bad

            P Offline
            P Offline
            Paul Watson
            wrote on last edited by
            #5

            Unfortuanately this is not true. The server has to be setup to handle alias-less URLs. The Code Project servers have been setup to handle an URL without the www bit gracefully. It has to be setup with IIS though, it is not default behavouir. The browser idea is nice but it might cause other unintended problems, who knows. regards, Paul Watson South Africa The Code Project South-East Asia Disaster: How you can help Pope Pius II said "The only prescription is more cowbell. "

            1 Reply Last reply
            0
            • P Paul Watson

              Not a full answer as I don't know all the technical terms but... The http part is the protocol. For instance ftp://something.com would communicate with that domain using the ftp protocol. https is an http protocol connection but secured using SSL (normally). There are many other protocols but those are the three major ones. something.com is the full domain name. The COM part is the TLD (top level domain e.g. co.uk, co.za, net, org etc.) This is registered with a domain name provider and mapped to some nameserver. [Edit] Anders pointed out that I was incorrect about the term alias, it is in fact a sub-domain. So in the following think sub-domain and not alias. I think this also changes the "setup on the server" bit.[/Edit] The www of www.something.com is as far as I remember called an alias. It is setup on the server that the domain points to. You can have as many aliases as you wish, or none at all. In this case www stands for world wide web and has just become some kind of agreed on standard. It is not neccesary but it is a good idea to have. For instance some servers will, confusingly, have the following: http://ftp.something.com which is like a ftp connection but over the http protocol. Useful but confusing. I don't know if there is a limit but you can string aliases together e.g. http://subalias1.subalias2.subalias3.something.com is valid. Depending on your server software you can have aliases pointing to different folders/directories on your server. Or they can all point to the same one or a mixture. e.g. http://www.something.com and http://something.com will generally point to the same place as many of us like to skip the www bit (for me, servers that balk at skipping the www bit are a PITA). Hope that helps :) regards, Paul Watson South Africa The Code Project South-East Asia Disaster: How you can help Pope Pius II said "The only prescription is more cowbell. "

              A Offline
              A Offline
              Anders Molin
              wrote on last edited by
              #6

              You almost got it right ;) www.codeproject.com is not an alias for codeproject.com, it's a subdomain. In DNS terms it's either an A-Record or a CName ;) www.codeproject.com and codeproject.com can point to different ip-addresses. If it was an alias it would point to the same ip ;) - Anders Bill's Bar
              My Photos

              WDevs - The worlds first DSP, free blog space, email and more. Now also with forums :)

              P D 2 Replies Last reply
              0
              • A Anders Molin

                You almost got it right ;) www.codeproject.com is not an alias for codeproject.com, it's a subdomain. In DNS terms it's either an A-Record or a CName ;) www.codeproject.com and codeproject.com can point to different ip-addresses. If it was an alias it would point to the same ip ;) - Anders Bill's Bar
                My Photos

                WDevs - The worlds first DSP, free blog space, email and more. Now also with forums :)

                P Offline
                P Offline
                Paul Watson
                wrote on last edited by
                #7

                Ah, thanks for the clarification, Anders. regards, Paul Watson South Africa The Code Project South-East Asia Disaster: How you can help Pope Pius II said "The only prescription is more cowbell. "

                1 Reply Last reply
                0
                • A Anders Molin

                  You almost got it right ;) www.codeproject.com is not an alias for codeproject.com, it's a subdomain. In DNS terms it's either an A-Record or a CName ;) www.codeproject.com and codeproject.com can point to different ip-addresses. If it was an alias it would point to the same ip ;) - Anders Bill's Bar
                  My Photos

                  WDevs - The worlds first DSP, free blog space, email and more. Now also with forums :)

                  D Offline
                  D Offline
                  Dennis C Dietrich
                  wrote on last edited by
                  #8

                  Anders Molin wrote: www.codeproject.com is not an alias for codeproject.com, it's a subdomain. I'm sorry, but this again is not entirely true. In fact it is ambiguous. It could be a subdomain of codeproject.com but more likely www is the actual hostname or one of the hostnames as you can create multiple A records for one address (see Domain Name System: 2.2 Understanding the parts of a domain name[^]). Best regards Dennis

                  1 Reply Last reply
                  0
                  • S Steve McLenithan

                    www. is a subdomain of something.com I still don't get why everyone started using www.something.com anyway. To help the ignorant public remember websites?

                    This demographic will quite happily click on shiny things however:laugh:

                    Found on Bash.org [erno] hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is.

                    S Offline
                    S Offline
                    Steve McLenithan
                    wrote on last edited by
                    #9

                    And I was voted a 1 why?

                    This demographic will quite happily click on shiny things however:laugh:

                    Found on Bash.org [erno] hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is.

                    1 Reply Last reply
                    0
                    • S Steve McLenithan

                      www. is a subdomain of something.com I still don't get why everyone started using www.something.com anyway. To help the ignorant public remember websites?

                      This demographic will quite happily click on shiny things however:laugh:

                      Found on Bash.org [erno] hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is.

                      Q Offline
                      Q Offline
                      QuiJohn
                      wrote on last edited by
                      #10

                      I still don't get why everyone started using www.something.com anyway. To help the ignorant public remember websites? The Internet and its addresses predate the web. In "the old days" there would frequently be several independant addresses within a domain that you might be interested in. We might have the ftp server be at ftp.something.com, the gopher server at gopher.something.com, the e-mail server at mail.something.com, and so on. Then there would be any number of individual workstations, probably called frodo.something.com, samwise.something.com, pippin.something.com, etc. (I believe there was an RFC stating that all workstations MUST be named after Lord of the Rings places and characters, preferably hobbits). When the web came along, it was just another service that was to be added to a domain, so www.something.com was born. Now a domain's main function is usually to be a webserver, so the www is redundant. It bugs me when one works but not the other.

                      D 1 Reply Last reply
                      0
                      • Q QuiJohn

                        I still don't get why everyone started using www.something.com anyway. To help the ignorant public remember websites? The Internet and its addresses predate the web. In "the old days" there would frequently be several independant addresses within a domain that you might be interested in. We might have the ftp server be at ftp.something.com, the gopher server at gopher.something.com, the e-mail server at mail.something.com, and so on. Then there would be any number of individual workstations, probably called frodo.something.com, samwise.something.com, pippin.something.com, etc. (I believe there was an RFC stating that all workstations MUST be named after Lord of the Rings places and characters, preferably hobbits). When the web came along, it was just another service that was to be added to a domain, so www.something.com was born. Now a domain's main function is usually to be a webserver, so the www is redundant. It bugs me when one works but not the other.

                        D Offline
                        D Offline
                        Dennis C Dietrich
                        wrote on last edited by
                        #11

                        David Kentley wrote: In "the old days" there would frequently be several independant addresses within a domain that you might be interested in. We might have the ftp server be at ftp.something.com, the gopher server at gopher.something.com, the e-mail server at mail.something.com, and so on. In the old days? I'd say what you just wrote is pretty much up-to-date. Most "real" networks (I'm not talking about shared web hosts at some ISP) still have those ftp.something.tld, mail.something.tld and so on A records (and of course the associated hosts). Often there are even A records for the real hostnames of the machines. David Kentley wrote: Then there would be any number of individual workstations, probably called frodo.something.com, samwise.something.com, pippin.something.com, etc. As I just wrote this is still common practice. David Kentley wrote: I believe there was an RFC stating that all workstations MUST be named after Lord of the Rings places and characters, preferably hobbits <rofl/> One of those 1st of April RFCs perhaps? :cool: Best regards Dennis

                        1 Reply Last reply
                        0
                        • M Maximilien

                          www. ? ;P Me think that the browser will add the missing elements or the URL when it's trying to resolve the address; or maybe do a quick search and return the first find. for example, in firefox, if you type codeproject, it will take you here.


                          Maximilien Lincourt Your Head A Splode - Strong Bad

                          H Offline
                          H Offline
                          Heath Stewart
                          wrote on last edited by
                          #12

                          The browser (including IE and Mozilla/Firefox) will add both "www." and ".com" (this can usually be changed through the UI or registry hacks) when neither is present, but not one or the other. This is, of course, default behavior. Plugins/extensions may change such default behavior. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]

                          1 Reply Last reply
                          0
                          • S Steve McLenithan

                            www. is a subdomain of something.com I still don't get why everyone started using www.something.com anyway. To help the ignorant public remember websites?

                            This demographic will quite happily click on shiny things however:laugh:

                            Found on Bash.org [erno] hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is.

                            H Offline
                            H Offline
                            Heath Stewart
                            wrote on last edited by
                            #13

                            Actually, "www" is usually a host not a sub-domain. I suppose that some sites' DNS configurations may make it a sub-domain vs. an A or CNAME record, but it is usually a host. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]

                            1 Reply Last reply
                            0
                            • S Steve McLenithan

                              www. is a subdomain of something.com I still don't get why everyone started using www.something.com anyway. To help the ignorant public remember websites?

                              This demographic will quite happily click on shiny things however:laugh:

                              Found on Bash.org [erno] hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is.

                              D Offline
                              D Offline
                              David Crow
                              wrote on last edited by
                              #14

                              Steve McLenithan wrote: www. is a subdomain of something.com www.something.com has three parts: www (host name) something (domain name) com (top-level domain)


                              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups