Subdomains do not work when adding www?

I purchased my domain name from one registrar and is hosted in another hosting company. I created a subdomain from my hosting domain manager lie http://subdomain.domain.com, and it works great. But when someone types www.subdomain.domain.com, the site does not work.

Do I need to make changes to my DNS manager to host CPanel or the DNS manager of my CPanel domain?

Also, all the records that I need to add (for example, A Record or CNAME) are redirected www.subdomain.domain.comto subdomain.domain.com.

I do not want to see wwwfor my subdomain, but I only want to redirect to subdomain.domain.com.

+13
source share
5 answers

, www.subdomain.domain.com . CNAME subdomain.domain.com , .com.

+10

.

- www.subdomain.domain.com subdomain.domain.com. www .

+8

CNAME sub.domain.

@, sub.domain - subdomain maindomain.

0

. , .

, , CNAME www customer1.mysite.com . , CNAME www.customer1 mysite.com www customer1.mysite.com - xMudrii https://www.digitalocean.com/community/questions/how-to-configure-subdomains-to-use-www-and-non-www

0

Let's say you have a website www.example.comand want to have a working link, for example www.service.example.com, then you need to enter the subdomain name www.service(and not service) when setting up the subdomain.

It is advisable to set both the subdomain, that is www.service, and servicefor users who gain www.service.example.comand service.example.comin their browsers.

-1
source

All Articles