Wordpress has the nice habit of storing every URL with its full path in the database. You sure can hardcode the HOME_URL and SITE_URL in the wp-config.php but it won't change the references to your medias, etc.
The only solution is really just to edit the database. At least, I haven't found a better solution.
wordpress-change-url.php http://old-domain.com https://new-domain.com < database.orig.sql > database.new.sql
Will output all remaining mentions of http://old-domain.com