I have a Cpanel web hosting account and have created a subdomain which redirects to an IP address of a different server (Windows IIS) by creating an A record. I don't have control of the Windows server.
I would like that those people who type
www. before the subdomain get redirected to the same page.
I tried creating a CNAME record pointing www.foo.example.com. to foo.example.com but it isn't working. It is actually stopping the A record from working.
How do I redirect www.foo.example.com. to foo.example.com in Cpanel?