Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

Your Answer


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

Browse other questions tagged or ask your own question.