Point a subdomain to a page on the domain

  • Posted March 25, 2014

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


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Assuming you have setup a virtualhost for you subdomain, simply add the following line to the VirtualHost block defining your subdomain <br> <br>Redirect permanent / <br> <br>so it should look like <br> <br><VirtualHost *:80> <br> ServerAdmin webmaster@localhost <br> ServerName <br> ServerAlias <br> <br> Redirect permanent / <br></VirtualHost>