DNS Subdomain

Posted August 24, 2013 7.3k views
The old shared hosted server had and the new droplet is The community is really just a subdirectory. DNS records and are set for droplet. Can go to browser and type as well as and get to Can also go and the pages load fine. However ... I cannot go ... and get a browser error that the page will not load. Server not found I went to the DNS panel and added a CNAME (the period is present). Did I miss a step? will point to ... (and does roll properly).

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
5 answers
What are the two domain names?

I added an "A" record. Dunno what I'm really doing but think it is mostly working now.

But the roll over isn't quite right ...

In .htaccess I have

RewriteCond %{HTTP_HOST} ^community\.tuxreportsnetwork\.com
RewriteRule ^(.*)$$1 [R=301]

The hope is everything in is rolled over to ....

so I don't lose all the links from Google search.

But none of the links seem to redirect properly.

I'm not sure if this is all related .. or a really bad .htaccess attempt :)
Sorry - cannot edit above

Also noticed that any of the * subdomains are not rolling to

So this must be something I've done wrong on the DNS side too.
What's the contents of /etc/apache2/sites-enabled/?
DNS doesn't handle redirects, it only maps the domain name to your droplet('s IP address).

Please pastebin all of your virtualhost configs (