WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have moved a wordpress site from one domain and server to another domain and server. Everything looks fine except all the links within the site are still pointing to the previous domain. Please let me know what went wrong with the transfer. I'll really be thankful for the kind response and help.

share|improve this question

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');
share|improve this answer
+1 though I would recommend Velvet Blues Update URLs to sort out the absolute links. – s_ha_dum Mar 25 '13 at 17:19
Ah, I didn't know about that plugin, though I was sure there is one for this particular task. Thanks. – tfrommen Mar 25 '13 at 17:28
I am not affiliated at all with that plugin but it is one of the very, very few I use, much less recommend. – s_ha_dum Mar 25 '13 at 17:37

You probably need to log into the admin portal (www.yoursite.com/wp-admin) and change the site's address under settings >> general >> wordpress address.

Hope that helps

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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