I have been struggling with this issue for hours now.
I currently have a WordPress site running at domain.com/subdomain.
I want to transfer this to domain2.com.
What I’ve done:
- Exported the tables from PHPMyAdmin.
- “Replace all” from domain.com/subdomain to domain2.com in the .SQL-file. (I even used a replace tool to keep the string lengths or what not -> WP Serialized PHP Replacer)
- Downloaded the entire site from domain.com/subdomain.
- Uploaded the entire site to domain2.com.
- Changed the database info in wp-config.php to the correct info for the new DB at domain2.com.
- Imported the .SQL-file to the new database.
What happens now? Well, when I navigate to domain2.com I get the error “Cannot display the webpage”. I have tried making a brand new install of WordPress on domain2.com, and that works like a charm.
The only thing is that I got hundreds of pages and plugins with settings that I would really like to keep, took days for me just to get them in order and the clients deadline is due tomorrow.
The WordPress Tools > Export tool was like a wolf in sheep clothing, tricking me into I fixed it. But it didn’t copy user information or plugin settings.
Make sure that you
.htaccessfile looks like this:and NOT like this