I'm having trouble configuring wp-config.php correctly in a staged server environment. I'm being told that I should be working in my stage environment for Wordpress with an example address of http://www-stage.website.com. It will then mirror to the production server at http://website.com as they use the same database.
Any uploads, plugins and themes should also be done on the stage site, but configuring the config file has been a challenge.
Am I on the right track in using something like
define('WP_HOME','http://www.website.com');
define('WP_SITEURL','http://www-stage.website.com');
or should I only be configuring the site through the WP general settings? Or am I just totally going about this the wrong way?
The latter seems to be the case.