0 votes
63 views
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
by Expert

Hi Mike,

Please, read the documentation.

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

Regards.

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: Now you can use any external SMTP service in your server. All the server outgoing emails from any of your websites will be sent through this service.

Donations

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.

...