Dear all,

This may sound stupid but it's driving me mad!

Normally when you want to move a Drupal site from one server to another server the method is quite easy.

I always have the Backup&Maigrate module installed so I backup the database leaving out the cache, sessions, and watchdog data but taking their file structures

Then I copy the ENTIRE tree structure from the root downwards to its new location.

Finally I import into an EMPTY database the previously backed up database.

100% of the time it works, EXCEPT it seems when you change the URL under which the site sits.

For example if the original deployment was at http:/www.sitehereandnow.com and then you migrate it to http://www.restored.com the front page works, but EVERY other link gives an error 500

Can anyone explain why and how to get around it?

p.s.

I am using Drupal 7.x

Thanks

Comments

ian-moran’s picture

It's the most common cause of an error when moving sites around.

Jaypan’s picture

I agree with ian-moran, it's probably something to do with your .htaccess. I regularly migrate sites in the method you described, with different URLs, as I develop locally using one URL and have a different URL when deploying to the server, and this doesn't cause any troubles.