Question

Point a subdomain to a page on the domain

  • Posted March 25, 2014

Hey guys, My goal here is to pint http://cydia.ge0rges.com/ to http://ge0rges.com/repo. 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

Subscribe
Share

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 / http://ge0rges.com/repo <br> <br>so it should look like <br> <br><VirtualHost *:80> <br> ServerAdmin webmaster@localhost <br> ServerName cydia.ge0rges.com <br> ServerAlias cydia.ge0rges.com <br> <br> Redirect permanent / http://ge0rges.com/repo <br></VirtualHost>