Question
Multiple Domains for one website
Hi,
I want to have 1 drupal site with 2 domains i.e. .com .com.au.
I have setup my dns for the .com just the basic dns setup and pointed the domains at the DO nameservers. The .com is now resolving but the .com.au which I have also created dns for does not resolve.
I have tried to add vhosts file to the apache server but this has not worked.
PLease any help or suggestions would be greatly appreciated.
Regards
Oliver
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.
×
I am still figuring out the best approach for this kind of thing, but I have managed it two different ways:
use the 000-default.conf file for the first domain (rather than creating a separate conf file) ..this makes that domain the default website, and unconfigured domains will point to that site
A different approach I have done is to set up a conf file for the second domain, and then in that directory for the second domain I put an .htaccess file that redirects to the first site. The .htaccess file has this in it:
Of course, if your .au.com is not resolving at all, it might just need a little more time if you have only recently made DNS changes.