These queries are a quick way to update your database when changing from a development to production domain. There’s obviously other ways of managing this but I’ve found this to work for me.
front-end/back-end/app-end web developer
These queries are a quick way to update your database when changing from a development to production domain. There’s obviously other ways of managing this but I’ve found this to work for me.
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’);