Hi to all I have developed a website based on Drupal 7, let's call it domain1.com. The owner of the website bought domain2.com and wants to change domains but to keep everything else. Themes and modules, content... Everything.
What would be the easiest way?
Thanks for any help
Maybe I am misunderstanding you but it sounds to me like all you have to do is change the DNS entry from domain1 to domain2.
On Oct 23, 2013, at 5:45 PM, Afan drupal@afan.net wrote:
Hi to all I have developed a website based on Drupal 7, let's call it domain1.com. The owner of the website bought domain2.com and wants to change domains but to keep everything else. Themes and modules, content... Everything.
What would be the easiest way?
Thanks for any help
[ Drupal support list | http://lists.drupal.org/ ]
Unless you have your /sites/ subdirectory set as the actual domain name, in which case it might be a bit more tricky...
Brett Evanson
On Wed, Oct 23, 2013 at 8:39 PM, Warren Keuffel wkeuffel@gmail.com wrote:
Maybe I am misunderstanding you but it sounds to me like all you have to do is change the DNS entry from domain1 to domain2.
On Oct 23, 2013, at 5:45 PM, Afan drupal@afan.net wrote:
Hi to all I have developed a website based on Drupal 7, let's call it domain1.com. The owner of the website bought domain2.com and wants to change domains but to keep everything else. Themes and modules, content... Everything.
What would be the easiest way?
Thanks for any help
[ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
I believe links from top level menu items have to be absolute, so if you have any of those you'll need to change them.
From: Brett Evanson brettev@gmail.com To: support@drupal.org, Date: 10/23/2013 10:59 PM Subject: Re: [support] Switching domains but keeping the rest... Sent by: support-bounces@drupal.org
Unless you have your /sites/ subdirectory set as the actual domain name, in which case it might be a bit more tricky...
Brett Evanson
On Wed, Oct 23, 2013 at 8:39 PM, Warren Keuffel wkeuffel@gmail.com wrote:
Maybe I am misunderstanding you but it sounds to me like all you have to
do is change the DNS entry from domain1 to domain2.
On Oct 23, 2013, at 5:45 PM, Afan drupal@afan.net wrote:
Hi to all I have developed a website based on Drupal 7, let's call it domain1.com. The owner of the website bought domain2.com and wants to change domains but to keep everything else. Themes and modules, content... Everything.
What would be the easiest way?
Thanks for any help
[ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
No. I meant make a 100% copy (duplicate) of domain1.com and have it under domain2.com. Or, maybe, instal new drupal on domain2.com, change database in settings.php to domain1 database and then overwrite "sites" in domain2 with "sites" from domain1. Does it make a sense now?
On 10/23/2013 9:39 PM, Warren Keuffel wrote:
Maybe I am misunderstanding you but it sounds to me like all you have to do is change the DNS entry from domain1 to domain2.
On Oct 23, 2013, at 5:45 PM, Afan drupal@afan.net wrote:
Hi to all I have developed a website based on Drupal 7, let's call it domain1.com. The owner of the website bought domain2.com and wants to change domains but to keep everything else. Themes and modules, content... Everything.
What would be the easiest way?
Thanks for any help
[ Drupal support list | http://lists.drupal.org/ ]
Use drush. Archive-backup or arb backs up everything into a compressed tarball. Move that to the new domain and use drush archive-restore to restore it. Do a drush cc all to clear the cache after the restore and it should be fine.
Ken
On Wed, Oct 23, 2013 at 11:22 PM, Afan drupal@afan.net wrote:
No. I meant make a 100% copy (duplicate) of domain1.com and have it under domain2.com. Or, maybe, instal new drupal on domain2.com, change database in settings.php to domain1 database and then overwrite "sites" in domain2 with "sites" from domain1. Does it make a sense now?
On 10/23/2013 9:39 PM, Warren Keuffel wrote:
Maybe I am misunderstanding you but it sounds to me like all you have to do is change the DNS entry from domain1 to domain2.
On Oct 23, 2013, at 5:45 PM, Afan drupal@afan.net wrote:
Hi to all I have developed a website based on Drupal 7, let's call it domain1.com. The owner of the website bought domain2.com and wants to change domains but to keep everything else. Themes and modules, content... Everything.
What would be the easiest way?
Thanks for any help
[ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
Set ServerAlias under domain1 in Apache's virtualhost directive to domain2.com, restart Apache and done. So long as you haven't had any funky contrib modules store stuff as absolute in the database or set things like $base_url or $cookie_domain in settings.php, you'll be fine.
If you're on shared hosting, then it's a little more complicated. A lot of them now offer to set the directory for hosts, so if you're lucky in that sense just set both domains to the same docroot. If not, then you'll most likely have to contact them and see if they will do the update for you. Some will and some won't.
Jamie Holly http://hollyit.net
On 10/23/2013 11:22 PM, Afan wrote:
No. I meant make a 100% copy (duplicate) of domain1.com and have it under domain2.com. Or, maybe, instal new drupal on domain2.com, change database in settings.php to domain1 database and then overwrite "sites" in domain2 with "sites" from domain1. Does it make a sense now?
On 10/23/2013 9:39 PM, Warren Keuffel wrote:
Maybe I am misunderstanding you but it sounds to me like all you have to do is change the DNS entry from domain1 to domain2.
On Oct 23, 2013, at 5:45 PM, Afan drupal@afan.net wrote:
Hi to all I have developed a website based on Drupal 7, let's call it domain1.com. The owner of the website bought domain2.com and wants to change domains but to keep everything else. Themes and modules, content... Everything.
What would be the easiest way?
Thanks for any help
[ Drupal support list | http://lists.drupal.org/ ]
On 10/24/2013 8:51 AM, Jamie Holly wrote:
If you're on shared hosting,
Yes, it's shared hosting.
What I did (and looks like it works) I installed Drupal on domain2.com, in settings.php changed mysql data (db name, db username, db password...) with those from domain1.com. Then copied modules and themes from domain2.com/sites/all/* to domain2.com.
I did some tests and everything works fine, but I would like to know if what I did is ok or just "accidentally" works fine. :D
That works by design, but don't forget to copy sites/default/files (or wherever your file system settings point to) across to the new domain place as well.
Drupal has three parts that make up the site... the db, the code and the files.
If you have two domains pointing to the same database, then the sites will always be the same. It would be better to make a copy of the database. (You can usually do this in phpMYAdmin operations tab)... or alternatively you can use the backup_migrate module to make a copy of the DB.
NOTE: You may be in a situation that has every node being created in both domains. I couldn't really tell if this is what you want... so I'd advise you to do some testing to that regard.
Dave
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Afan Sent: Thursday, October 24, 2013 2:20 PM To: support@drupal.org Subject: Re: [support] Switching domains but keeping the rest...
On 10/24/2013 8:51 AM, Jamie Holly wrote:
If you're on shared hosting,
Yes, it's shared hosting.
What I did (and looks like it works) I installed Drupal on domain2.com, in settings.php changed mysql data (db name, db username, db password...) with those from domain1.com. Then copied modules and themes from domain2.com/sites/all/* to domain2.com.
I did some tests and everything works fine, but I would like to know if what I did is ok or just "accidentally" works fine. :D
Right, I forgot to mention I copied the files folder too. Also, once the domain2.com works fine, domain 1.com is going to "die" (redirect a visitor to domain2.com).
On 10/24/2013 5:17 PM, Metzler, David wrote:
That works by design, but don't forget to copy sites/default/files (or wherever your file system settings point to) across to the new domain place as well.
Drupal has three parts that make up the site... the db, the code and the files.
If you have two domains pointing to the same database, then the sites will always be the same. It would be better to make a copy of the database. (You can usually do this in phpMYAdmin operations tab)... or alternatively you can use the backup_migrate module to make a copy of the DB.
NOTE: You may be in a situation that has every node being created in both domains. I couldn't really tell if this is what you want... so I'd advise you to do some testing to that regard.
Dave
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Afan Sent: Thursday, October 24, 2013 2:20 PM To: support@drupal.org Subject: Re: [support] Switching domains but keeping the rest...
On 10/24/2013 8:51 AM, Jamie Holly wrote:
If you're on shared hosting,
Yes, it's shared hosting.
What I did (and looks like it works) I installed Drupal on domain2.com, in settings.php changed mysql data (db name, db username, db password...) with those from domain1.com. Then copied modules and themes from domain2.com/sites/all/* to domain2.com.
I did some tests and everything works fine, but I would like to know if what I did is ok or just "accidentally" works fine. :D
Be sure to do a 301 status redirect for the search engines benefit.
Earnie
On Fri, Oct 25, 2013 at 12:32 AM, Afan drupal@afan.net wrote:
Right, I forgot to mention I copied the files folder too. Also, once the domain2.com works fine, domain 1.com is going to "die" (redirect a visitor to domain2.com).
On 10/24/2013 5:17 PM, Metzler, David wrote:
That works by design, but don't forget to copy sites/default/files (or wherever your file system settings point to) across to the new domain place as well.
Drupal has three parts that make up the site... the db, the code and the files.
If you have two domains pointing to the same database, then the sites will always be the same. It would be better to make a copy of the database. (You can usually do this in phpMYAdmin operations tab)... or alternatively you can use the backup_migrate module to make a copy of the DB.
NOTE: You may be in a situation that has every node being created in both domains. I couldn't really tell if this is what you want... so I'd advise you to do some testing to that regard.
Dave
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Afan Sent: Thursday, October 24, 2013 2:20 PM To: support@drupal.org Subject: Re: [support] Switching domains but keeping the rest...
On 10/24/2013 8:51 AM, Jamie Holly wrote:
If you're on shared hosting,
Yes, it's shared hosting.
What I did (and looks like it works) I installed Drupal on domain2.com, in settings.php changed mysql data (db name, db username, db password...) with those from domain1.com. Then copied modules and themes from domain2.com/sites/all/* to domain2.com.
I did some tests and everything works fine, but I would like to know if what I did is ok or just "accidentally" works fine. :D
-- [ Drupal support list | http://lists.drupal.org/ ]