How can I have 2 domain names pointing to the same website?

Thanks

Carl

Comments

jbrauer’s picture

If you want them to point to the exact same website (same content) then it's a matter of telling Apache (or your web server) that the directory for both sites is the same.

If you want to do two sites from the same codebase (with different databases and content) check out the Handbook section on multi-site installation.

------------------------------
Adding Understanding

--

godam64’s picture

if you use cpanel you can add parking domains that will hit the same content and database with the main site http folder. but i think drupal only limiting 1 target url, so it'll work like domain forwarding. it's totally work with phpbb.

beware that google and other search engine can ban your sites if you make site clones.

Netska Organisasi Invo Banget UI

goggie’s picture

Hi

You will have to forward one of the domain URL's to the other domain URL - this is the simplest and is done at your domain registrar.

This forwarding actually has nothing to do with Apache, Drupal or PHP.

If your one URL is forwarded at your registrar, google bots are a bit more friendly (OK, IMHO)

chief_ac427’s picture

I have multiple drupal sites running from the same code base.
Essentially, they are all directories off the Drupal root directory.
Together with the apache httpd.conf and directives, this works just fine.
The problem I have is I set up a site for a URL of www.FirstnameLastname.domain and I also have a www.FirstnameMiddlenameLastname.domain which I want to land at the same site.
Despite all that I have tried, the latter (presumably because it doesn't match anything under /sites, goes to the default site.
I'll try and set up a symbolic link from FirstnameMiddlenameLastname.domain to FirstnameLastname.domain and see how that goes, but if anyne has a better solution I would much appreciate it.