Transfer of wordpress site from one domain and server to another domain and server

Most probably, nothing went wrong, you just have to set some things to the new server.

Firstly, there are the home and site urls (to be found in the general settings).

Then, possible absolute links pointing to the old domain have to be adapted.

To change these links, you have to adapt the SQL table.

Update options (this can also be done via the general settings, as described above):

UPDATE wp_options
SET option_value = replace(option_value, 'http://old-domain.com', 'http://new-domain.com')
WHERE option_name="home" OR option_name="siteurl";

Update absolute links inside posts:

UPDATE wp_posts
SET post_content = replace(post_content, 'http://old-domain.com', 'http://new-domain.com');

Leave a Comment