The old shared hosted server had community.domain.com and the new droplet is www.domain1.com/community. The community is really just a subdirectory.
DNS records domain.com and domain1.com are set for droplet. Can go to browser and type domain.com as well as domain1.com and get to domain1.com. Can also go www.domain1.com/community and the pages load fine.
However … I cannot go community.domain.com … and get a browser error that the page will not load.
Server not found
I went to the DNS panel and added a CNAME community.domain.com. (the period is present).
Did I miss a step?
Domain1.com will point to domain.com … (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.
Click below to sign up and get $100 of credit to try our products over 60 days!
DNS doesn’t handle redirects, it only maps the domain name to your droplet('s IP address). <br> <br>Please pastebin all of your virtualhost configs (http://pastebin.org)
What’s the contents of <code>/etc/apache2/sites-enabled/</code>?
Sorry - cannot edit above <br> <br>Also noticed that any of the *.tuxreportsnetwork.com subdomains are not rolling to www.tuxreports.com <br> <br>So this must be something I’ve done wrong on the DNS side too.
Hi, <br> <br>I added an “A” record. Dunno what I’m really doing but think it is mostly working now. <br> <br>www.tuxreportsnetwork.com <br>www.tuxreports.com <br> <br>But the roll over isn’t quite right … <br> <br>In .htaccess I have <br> <br>RewriteCond %{HTTP_HOST} ^community.tuxreportsnetwork.com <br>RewriteRule ^(.*)$ http://www.tuxreports.com/community/$1 [R=301] <br> <br>The hope is everything in community.tuxreportsnetwork.com is rolled over to www.tuxreports.com/community … <br> <br>so I don’t lose all the links from Google search. <br> <br>But none of the links seem to redirect properly. <br> <br>https://www.google.com/search?q=tuxreportsnetwork.com&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a <br> <br>I’m not sure if this is all related … or a really bad .htaccess attempt :)
What are the two domain names?