One Reply to “Dev to production or beta domains in WordPress”

  1. That’ll work for actually updating the database, but turns out you can just force WordPress to use a specific URL in the config file which overwrites any setting in the database. Handy for multiple staging/development and production environments.
    eg.
    define(‘WP_HOME’,’http://url.dev’);
    define(‘WP_SITEURL’,’http://url.dev’);

Leave a Reply