Modify your database dump when moving a Wordpress installation from one url to another.
This programm replaces all urls and paths from your old installation with the data from your new one. If you have a multisite installation you have to replace your url in your w-config.php as well.