I Installed Drupal 6.x a month ago, and invested a considerable amount of time tweaking and writing few blog nodes. But now I want to change the domain name to a different one.

Is it possible to upload the database and all the files of domain-1 to domain-2, and expect everything to be working fine and normal as usual? I am aware that I have to edit links I created that contains the old domain name in the nodes and Primary Menu. This is fine.

But will there be any internal implications within the database or core files that is associated and embedded with the old domain when I initially installed it, that is likely to cause problems due to a new domain name?

Is this a common practice, have you ever done this? Need your pointers please. How would you do this?

Comments

cog.rusty’s picture

Moving to another domain is no problem.

If the new domain is not on the same server you may encounter a few difficulties (or not) with clean URLs etc but nothing that can't be fixed.

Besides the links in the content and the location of your "files" directory, also check for any references to the old domain in your .htaccess and settings.php files.

Drupppal’s picture

Hi,

The new domain will be on a new host, therefore a new server. So what are the "few difficulties" I might encounter that I can prepare for to prevent it?

location of your "files" directory

The location of my "files" is/will be the in same place as before. Do you mean change of the link located in the Administration page, or what did you mean by this?

Also check for any references to the old domain in your .htaccess and settings.php files.

Other than these two files, is there any other files that contains references to the old domain?

thanks

cog.rusty’s picture

Often clean URLs don't work on the new server and some tweaks are needed in the .htaccess file (removing some Options lines which are not allowed in the new server, or setting "RewriteBase /" instead of leaving it commented out, or...) You can't know until you see it.

No problem with the location of your "files" directory if it is the same as before. Sometimes people with multisites put their files under sites/example.com/files, which then is recorded in the database for each file... you can see the problem for moving if example.com changes.

Normally only those two files are where you (not drupal) may have added something specific to a domain name. Some redirects or rewriterules in .htaccess, or a $base_url in settings.php.

Drupppal’s picture

Often clean URLs don't work on the new server

Is this the case in general whenever changing a server for all drupal sites, or does it only occur when changing domain names of the drupal site, like what I am planing on doing?

cog.rusty’s picture

It is just a matter of differences between server configurations in different hosts. What they allow in an .htaccess file, whether or not they require a RewriteBase line in the .htaccess file, and whether you had to change something in .htaccess in the old host which does not work on the new host (for example to change php version).

Most times there is no problem. If there is, what you need to do depends on the specific errors that you see.

manop’s picture

I would like to just share my experience. When I moved mine, it worked very well except two things, clean URL (.htaccess file already mentioned above) and memory limit.

Memory limit need to be set somewhere details can be found here, http://drupal.org/node/207036

r_honey’s picture

Just wanted to track this thread, and could not find any other way. Please excuse me!!!

Stephen Winters’s picture

subscribe

jenkthompson’s picture

Wondering if anyone had any advice -- needed to change domain names, and everything seemed to be fine except a few key things including: saving files (it saves ok, but then redirects to previous domain "server not found" message.)

my .htaccess file and settings.php files don't refer to the old domain name at all at this point.

any suggestions?

liamknuj’s picture

I have same problem, nothing was mentioned in settings.php and htacces file. Website won't load anymore. What can I do els?