First of all make sure you're working on backups (files and BD). If you put your site by modifying original at risk in case of a mistake. Follow the steps mentioned below :
- Enter your admin panel and disable all plugins.
- Lower all your system files to disk.
- Enter phpMyAdmin and optimize the tables in your database (select them all and then click Optimize). Then go to Export and download the *.SQL.
- Open the *.SQL in an advanced text editor like EditPlus, UltraEdit or Dreamweaver (code view).
- Do a "Save As" (another name) for you to work on a backup.
- Call "Find / Replace" in your editor:
Search: http://www.Your-old-site.comDo it exactly like that. Do not put slashes ("/") at the end or anything else. Just replace the names of the sites.
Replaced by: http://www.Your-new-site.comSearch: / your / old / path / absoluteThis same, no trailing slashes. And of course you know the absolute path of your new site. This database will be ready to be uploaded.
Replaced by: / your / new / path / absolute- Create the new database. When you do be sure to assign the same character encoding than the old. Everything you would now add new data to your existing wp-config.php and you'll have the site running. You may encounter a problem with some directory permissions, as the download / upload the files chmod to reconfigure the default values. If you want to avoid that the client learns how to use SSH to manage files remotely.
Bookmarks