Hi, I want to use 2 domains, Domain1.com and Domain2.com for one single wordpress site. How can I do this? I did not attempt this yet and I know I will need to setup some nginx rules for sure. My main question is how to setup the nginx rules.
I also want to add this code to the wp-config file.
define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '~/www/domain1.com/htdocs');
define('WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] . '~/www/domain1.com/htdocs');