Forum Moderators: phranque
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?
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.
Whatever [URL...] is entered will be forwarded painlessly to [URL....]