Point a subdomain to a page on the domain

Posted March 25, 2014 3k views
Hey guys, My goal here is to pint to I have no idea how to this.. usually I would think the provider would have a solution to this like others do but DO doesn't. I tried adding a CNAME but support told me that wasn't what it was for and suggested I implement a 301 redirect which I tried doing without success. Currently I don't have anything setup not even the subdomain, I'm running the latest version of wordpress. Any help is appreciated, Thanks a lot, Georges

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.

Submit an Answer
1 answer
Assuming you have setup a virtualhost for you subdomain, simply add the following line to the VirtualHost block defining your subdomain

Redirect permanent /

so it should look like

ServerAdmin webmaster@localhost

Redirect permanent /