wp-config.php constants vs database options for WP_HOME and WP_SITEURL across local and production
I'm setting up a WordPress deployment where the same codebase runs locally (e.g., http://mysite.test ) and in production ( https://mysite.com ). The documented options for defining the site address are the WP_HOME and WP_SITEURL constants in wp-config.php , or the home and siteurl rows in the wp_options table. Each approach has a documented trade-off. Consta