Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 host...so I don't see why this didn't work.

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

share|improve this question

2 Answers 2

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 test.yourdomain.com with yourdomain.com 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

 
discard

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