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.

  • 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
    Commented Jun 11, 2014 at 7:57
  • Thanks but I've already set them to the appropriate new url.
    – nimsrules
    Commented Jun 11, 2014 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
    Commented Jun 11, 2014 at 9:11
  • No, there isn't any mention of them in wp-config
    – nimsrules
    Commented Jun 11, 2014 at 9:16
  • Could you try running site_url( '/' ); and posting here what it displays?
    – engelen
    Commented Jun 11, 2014 at 9:20

1 Answer 1


The previous developer had hard coded


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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