Wilexa Posted December 8, 2003 Posted December 8, 2003 Someone gave me a call when she couldn't reach a subdomain of mine (i.e. subdomain.****). She had mistakenly managed to get "www.subdomain.domain.com" into her browser address bar. Can we set up a "www" folder in a subdomain and then make it a "second level" subdomain? Just curious. ...Dave Rock Sign Quote
Lianna Posted December 8, 2003 Posted December 8, 2003 Those are actually forth level domains and NO, that's not possible here (as in its.my.domain.com is not possible. Third level domains are subdomains as we all know and love them (my.domain.com, yay.tchrocks.com, etc.) Second level domains are our domain names as we refer to them (domain.com and tchrocks.com, etc). Top Level Domains or TLD's are the .com, .org, etc. Quote
Wilexa Posted December 8, 2003 Author Posted December 8, 2003 Thanks, Lianna! Not really the answer I was hoping to hear, but its good to get the right answer, especially when it comes so fast! ...Dave Quote
TCH-Rick Posted December 8, 2003 Posted December 8, 2003 Maybe this is the answer you do want to hear. There has been a change recently in the way CPanel sets up subdomains. It now adds two entries to the DNS Zone and httpd.conf files so that either subdomain.domain.com or www.subdomain.domain.com works. That means that if you have a subdomain that has been set up for a while it is likely just set up to use subdomain.domain.com as a url. If you delete the subdomain and recreate it, it should set up both with and without the www as options. Once warning, though, I have seen some cases where only the www.subdomain.domain.com url works. It's not hard to fix but it could mean a trip to the Help Desk. Quote
Madmanmcp Posted December 8, 2003 Posted December 8, 2003 Rick, I know of and have seen sites that have more than 2 periods in the url and my understanding is that the url is read from back to front and the first two periods found are treated as the separators for the TLD, domain, and subdomain. The next period found is now a "valid" character and treated as part of the subdomain name. This would make the "www.subdomain" the full subdomain name. So I believe the full "www.subdomain.domain.com" will work if thats how you have it in cpanel. Quote
Lianna Posted December 9, 2003 Posted December 9, 2003 News to me! Thanks for the update Rick. However, that would definitely ONLY include a www.sub, correct? You still would not be able to create my.sub.domain.com, correct? Quote
Madmanmcp Posted December 9, 2003 Posted December 9, 2003 Sorry, I was wrong. Since there were two similar threads on this issue I decided to do a little research and looked up the RFC that would possibly help explain things. Well I ended up with a headache trying to understand what was said in the RFC Here it is for any of the brave souls reading. http://www.faqs.org/rfcs/rfc1034.html The URL is read from left to right not right to left as I mentioned. The hiearchy of the tree structure is determined from right to left, highest to lowest. The period is not a character and will still act as a separator. Quote
TCH-Rick Posted December 9, 2003 Posted December 9, 2003 Yes, it only would create the www.sub option. It is set up that way since so many folks just automatically type www in front of everything. Quote
Wilexa Posted December 9, 2003 Author Posted December 9, 2003 Sorry, Rick, but I am getting confused! Do you still stand by your earlier post that I can get both subdomains (sub and www.sub)? Thanks, Dave Quote
TCH-Rob Posted December 9, 2003 Posted December 9, 2003 I just set up a sub and it worked as sub and www.sub Quote
TCH-Don Posted December 9, 2003 Posted December 9, 2003 I just tried with a sub I made a week ago, and it works. But older ones do not. Very Cool Thumbs Up Quote
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.