WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 my company's blog at http://blog.analytixsolutions.com and now I've moved it to http://blog.aixsol.com but I have the URLs still pointing to the former address.

I used the commonly recommended search and replace plugin to change the URLs in the backend.

I also fired the following queries in phpmyadmin without any success.

UPDATE wp_options SET option_value = replace(option_value, 'OLDURL', 'NEWURL') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET guid = replace(guid, 'OLDURL','NEWURL');

UPDATE wp_posts SET post_content = replace(post_content, 'OLDURL', 'NEWURL');

UPDATE wp_postmeta SET meta_value = replace(meta_value,'OLDURL','NEWURL');

What am I doing wrong here? This is the tried and tested technique I've used to migrate a lot many other sites prior to this.

share|improve this question
Could it be that WP_SITEURL or WP_HOME is set in your wp-config.php file? If they aren't, could you use PHPMyAdmin to check whether the options with option_name siteurl and home are both set to the new URL? – engelen Jun 11 '14 at 7:57
Thanks but I've already set them to the appropriate new url. – Nimsrules Jun 11 '14 at 8:53
All right, and what about my first question? Could it be that WP_SITEURL or WP_HOME (constants) is set in your wp-config.php file? – engelen Jun 11 '14 at 9:11
No, there isn't any mention of them in wp-config – Nimsrules Jun 11 '14 at 9:16
Could you try running site_url( '/' ); and posting here what it displays? – engelen Jun 11 '14 at 9:20
up vote 0 down vote accepted

The previous developer had hard coded


in functions.php which on being removed resolved the issue. Thanks everyone for churning in your suggestions.

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.