How to move WordPress from one URL to another URL

Changing URLs on WordPress is unlike other scripts in which you would have a configuration file that you would need to edit.  In WordPress, everything configuration related is located inside the database.

There’s 3 main things that need to change;

UPDATE wp_options SET option_value = replace(option_value, ‘’, ‘’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;
UPDATE wp_posts SET guid = replace(guid, ‘’,’’);
UPDATE wp_posts SET post_content = replace(post_content, ‘’, ‘’

All you would need to do is change the OLD-DOMAIN section to the NEW-DOMAIN and then paste that into the SQL section inside phpmyadmin

Was this article helpful?

Related Articles

Leave A Comment?