Force new URL for WordPress blogs

Insert this into your wp-config.php file to force a new URL on a WordPress blog:

<?php
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
?>

Very useful for the initial move before being able to hop in to the database and correctly update everything.