0 votes
asked by Rookie

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');

1 Answer

0 votes
answered by Expert

Hi Mike,

Please, read the documentation.

Check the "parked domains" section in "site command" docs.


commented by Rookie
Awesome! I'm going to try this out. :)
Welcome to the Community site for Webinoly.

If you have a question about Webinoly, please ask in English or Spanish.

To report a bug, please ask a question here with the bug tag.

News: Webinoly now have support for the newest PHP 7.3.


Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.