2

I recently adquired a new domain I would like to use for my old wordpress site. I managed to configure this new domain in the same server and pointing to the main page.

However, after changing the Wordpress URL and website URL fields under Settings, the layout for the site breaks. It's like the theme I'm using gets corrupted.

What is the correct way of switching from one domain to another? I looked at http://codex.wordpress.org/Moving_WordPress but this doesn't mention the case when both domains are under the same server.

Thanks for your help,

  • you can follow what is written in the codex. you juste have to ignore DB export and import if it stay in place – mmm Aug 3 '15 at 10:41
4

You are facing the error because the database tables have old domain stored in all tables and post meta data.

You need to replace all instances of previous domain with the new one in the database, the following link will help:

https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

You should also update your permalinks after the above process.

0

Simplest method of WP migration is:

  1. Clean install Wordpress on new domain
  2. Copy uploads folder from old site to new
  3. Install Wp-migrate-DB plugin WP-Migrate-DB, for moving posts, pages, and another content.
  • He is using the same server so he has an access to his DB. No need of new DB. – denis.stoyanov Aug 3 '15 at 17:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.