Broken CSS after changing the site URL

If you have access to your mysql you can update the wp-options table. Before modification… $ mysql -u <db_user> –password=<db_pwd> -D <db_name> <<<“select * from wp_options where option_name in (‘siteurl’, ‘home’);” +———–+—————–+—————————————————————————————————+———-+ | option_id | option_name | option_value | autoload | +———–+—————–+—————————————————————————————————+———-+ | 1 | siteurl | http://172.17.0.2/wordpress | yes | | 2 | home … Read more

Recover WordPress blog from an inactive domain name

If you have problems to log even into your blog, edit wp-config.php: Add these two lines to your wp-config.php, where “example.com” is the NEW location of your site. define(‘WP_HOME’,’http://example.com’); define(‘WP_SITEURL’,’http://example.com’); This will at least make it useable again (but won’t fix links inside post and page content, see Ticket #4003). . Additionally you can add … Read more

Change site url when moving site to another url?

Those parameters and admin settings change the URLs in the database. The only other way to do that is run SQL queries on the DB in phpmyadmin to change them: UPDATE wp_options SET option_value = replace(option_value, ‘http://olddomain.com’, ‘http://newdomain.com’) WHERE option_name=”home” OR option_name=”siteurl”; UPDATE wp_posts SET guid = replace(guid, ‘http://olddomain.com’,’http://newdomain.com’); UPDATE wp_posts SET post_content = replace(post_content, … Read more