Friends, please pardon a rookie question, but I'm uncertain about some of the technical details / terminology.

I've just brought a new 5.1 installation online at YoungWizards.com, and it's working perfectly. Happy happy joy joy.

Now, I also own the YoungWizards.net domain -- different service provider, different server. I'd like to install Drupal over there, exactly mirroring the present installation at YW.com, and using the same databases -- no changes, no tweaking, identical look and feel. Can this be done using multisite?

And if so, can someone point me at the instructions? :)

Thanks!

Best -- Diane

Comments

pwolanin’s picture

This is not multisite- that's when you have different sites with different content running off a single Drupal installation on one server. You just need to do some domain parking/redirection.

For a start, just point your .net domain name to the same IP, and set up in your host's cpanel a "parked" domain entry for the .net. This will make the .com and .net point to the same site.

However, I strongly suggest against allowing people to log into the same site on 2 different domains - you'll have weired cookie problems, potentially, or you have to hack up settings.php to make sure the cookies are set on the same domain.

The easiest thing to do (and what I have set for several sites) is just set up a redirect in .htaccess so that anyone accessing the site without the www, or at the .net domain should get redirected to www.youngwizards.com. There's already some example code in the Drupal .htaccess file (commented out) which you should easily be able to adapt.

---
Work: BioRAFT

vjordan’s picture

Multisite isn't necessarily the direction you should take here.

option 1) A very simple approach would be to redirect the .net domain to the .com domain. Then every request for blah.net will be served by blah.com. No drupal complications at all.

option 2) If you want to have two separate domains so that a request to blah.net stays on blah.net then you could use the multisite setup but you'll still have to get the .net domain pointed to the hosting service of your .com domain (and in fact to the same file system location too). Then you're looking at having sites/youngwizards.com and a sites/youngwizards.net . In the latter your setting.php will be identical to the former, with only the base_url changed to www.youngwizards.net

I'd recommend option 1 unless you've a good reason to serve on the .net domain.

dduane’s picture

And thanks kindly to both of you.

I wound up doing Redirect 301's to all the equivalent pages / directories at the .net side, sending them over to the .com side: this produced the desired result.

Thanks again!

Best -- Diane

Diane Duane | The Owl Springs Partnership | Co. WIcklow, Ireland
http://www.dianeduane.com/outofambit | http://www.youngwizards.com