I have created sub domain as example.domain.com
on godaddy but when I put url as www.example.subdomain.com
it throws me an error
This webpage is not available
ERR_NAME_NOT_RESOLVED
but when I use as http://example.subdomain.com
it works. Why is this so?
You have to handle the sub-domains example.subdomain.com and www.example.subdomain.com as if they were two completely different sub-domains.
Fun fact: It's even possible to create sub-domains like "this.is.my.crazy.subdomain.com"!