Enter your keyword


How to Change Wordpress Site Location

Paste the query in database SQL server.

1.  Update wp_options table.

UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldsite.com', 'http://www.newsite.com') WHERE option_name = 'home' OR option_name = 'siteurl';

2.  Update wp_posts table set guid.

UPDATE wp_posts SET guid = replace(guid, 'http://www.oldsite.com', 'http://www.newsite.com');

3.  Update wp_posts table set post_content.

UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldsite.com', 'http://www.newsite.com');

No Comments

Add your review

Your email address will not be published.

* Feilds are Required.