webmaster1 Posted June 13, 2010 Share Posted June 13, 2010 I'm not familiar with the punctuated approach. Is there a specific terminology used to refer to this type of url so I can search for a few explanations? Are there any benefits to using one over the other? WHEN should I use either one or does it even matter? Quote Link to comment https://forums.phpfreaks.com/topic/204637-difference-between-somefoldersomesitecom-and-somesitecomsomefolder/ Share on other sites More sharing options...
ignace Posted June 13, 2010 Share Posted June 13, 2010 The first is called a sub-domain while the other is called a sub-folder. You'd use the latter in most cases. You would only use the first if you were eg split load: www1.domain.com -- 82.69.15.35 www2.domain.com -- 82.69.15.36 www3.domain.com -- 82.69.15.37 .. Quote Link to comment https://forums.phpfreaks.com/topic/204637-difference-between-somefoldersomesitecom-and-somesitecomsomefolder/#findComment-1071454 Share on other sites More sharing options...
haku Posted June 13, 2010 Share Posted June 13, 2010 I usually use subdomains for a separate set of content on a domain. For example, I have three sections on my domain - one for anonymous users, one for family/friends, and one for clients. All three have different data on them, though they use the same site design. The three domains are: personal.domain.com clients.domain.com www.domain.com All of these could be done in sub folders, but I prefer to keep them as distinct domain names to prevent people accidentally accessing the wrong domain and/or myself posting the wrong data to the wrong domain. I do also have three more sub-domains: js.domain.com css.domain.com img.domain.com I serve javascript, css and images from these three domains to speed up the page load time slightly. But they are never directly accessed by anyone. Quote Link to comment https://forums.phpfreaks.com/topic/204637-difference-between-somefoldersomesitecom-and-somesitecomsomefolder/#findComment-1071469 Share on other sites More sharing options...
webmaster1 Posted June 13, 2010 Author Share Posted June 13, 2010 Thanks for the explanations. Quote Link to comment https://forums.phpfreaks.com/topic/204637-difference-between-somefoldersomesitecom-and-somesitecomsomefolder/#findComment-1071610 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.