Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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.

Posted

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.

Posted

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?

Posted

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 :rolleyes:

 

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...