Wordpress database migration
Based on - https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Install
Copy the wp-dm.php file to your wordpress root folder (near the wp-config.php file).
Open the page: www.yoursite.com/wp-dm.php in the browser.
Click next up until the last step where you will have to enter the string that should be replaced and the string that will replace it. For example, you will enter: "http://oldwebsite.com" and "https://newwebsite.com".
If you want to replace more strings you have to re-run the script.
When you're done editing please remove this file!