Forum Moderators: phranque

Message Too Old, No Replies

Enabling www prefix to subdomains

Enabling www prefix to subdomains

         

chanduonline

9:57 am on Aug 17, 2006 (gmt 0)

10+ Year Member



I have my domain name registered and hosted with Godaddy. I am trying to use the subdomains functionality provided with my hosting account.

I created a new subdomain 'subdomain.myxxdomain.com'. Now the problem with this is, it is accessible only with [subdomain.myxxdomain.com....] If I try to use www.subdomain.myxxdomain.com I am getting 'DNS_HOST_NOT_FOUND' error.

How do I enable the 'www' prefix support for the subdomains.

Can we achieve this functionality by changing .htaccess file?

lammert

7:39 pm on Aug 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



First of all Welcome to WebmasterWorld!

subdomain.example.com and www.subdomain.example.com are two different entries. When trying to find the IP address in the first example, "subdomain" will be sent in a query to the DNS server of domain "example.com". The DNS server will look in its records if "subdomain" can be found and will return the IP address or CNAME. In the second situation "www.subdomain" will be mentioned in the query. This is a name not present in the records of the DNS server and the request will fail.

You only set up the subdomain with the name "subdomain", so the second query will fail. What should work, is when you add a second subdomain in your DNS settings with the name "www.subdomain" with further identical settings as the "subdomain" entry.

Quadrille

1:06 am on Aug 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



... once set up, use a 301 permanent redirect [subdomain.myxxdomain.com...] to [subdomain.myxxdomain.com,...] where you keep the content.

Whatever [URL...] is entered will be forwarded painlessly to [URL....]