Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a drupal install on a test subdomain, and when I tried moving it to the root domain, nothing worked. I had no absolute links that I was aware of, and both domains are on the same I don't see why this didn't work.

No details have to be changed...still the same db and host and there any wasy way to fix this?

share|improve this question

Make sure you have a backups and make sure the backups work. Then empty the database cache tables (cache, cache_block, cache_filter, etc.) (empty them, don't drop them) and hopefully you're back in action.

share|improve this answer

If everything else fails, you can dump your database with

mysqldump -u yourdatabaseuser -p yourdatabasename >yourmysqldump.sql

(I presume you're using MySQL) and then replace all the occurrences of with or whatever you need by using search & replace against the dump file.

In Linux/Unix shell a straight-forward way is to use sed:

sed -i -e 's/test\.yourdomain\.com/yourdomain\.com/g' yourmysqldump.sql

Then just import the dump back to MySQL with

mysql -u yourdatabaseuser -p yourdatabasename <yourmysqldump.sql

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.