Paid affiliate hosting advertisement

Moving drupal to a subdomain

toddfugere - February 27, 2007 - 15:29

I created a basic drupal site on xyz.com. I want to move this site to a subdomain of xyz.com is there an easy way to do this?

You just need to move one directory

alexis - February 27, 2007 - 15:46

Most Drupal installations don't have or need a url defined in settings.php so you should be ok just by moving your installation from xyz.com to subdomain.xyz.com.

In a Linux based servers you could run something like:

cp -r /home/user/public_html/ /home/user/subdomain

Maintain permissions for your files directory and take care of your web server configuration to know that subdomain.xyz.com has its files at /home/user/subdomain.

No change is needed for your database.

Regards!

Alexis Bellido
Ventanazul: web development and Internet business consulting shouldn't be boring

A similar thread

glendac - February 27, 2007 - 15:57

I've posted a reply to a similar query at http://drupal.org/node/123025. Moving sites has become an unavoidable routine task in developing websites so I think this would be an area where we can help with a more integrated documentation covering all kinds of cases of moving Drupal - test to production site, subdomain to subdomain, root to subdomain or subdirectory, one host to another, etc. WordPress has a really good documentation about moving WP blogs.

 
 

Drupal is a registered trademark of Dries Buytaert.