Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How do I set my domain to forward to a subdomain?
Please view my current DNS set up: link to set-up
I want to have subdomain: blog.mydomain.com and I want all requests to mydomain.com to be forwarded to blog.mydomain.com.
The result being whether you provided the blog subdomain or not you are taken to the blog.subdomain.com so the user knows that they are viewing the blog.
I have tried creating an A record and a CNAME record. Neither work.
For a CNAME if I set the name “@” and the hostname “blog.” I get the error: cname records cannot share a name with other records.
Do I need a differently configured CNAME record or an A record?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×