Fixing Wordpress When You Change the Site URL

MARCH 8, 2006

Very annoyingly if you update the WP site url (or move your blog without updating site url) your install will be b0rked and you will have to go mess around with the db. What you need to do (tested on WP 2.0) is:

update wp_options set option_value = '[wordpress -address]' where option_name = 'siteurl';
update wp_options set option_value = '[site -address]' where option_name = 'home';