Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run multiple domains under 1 wordpress instance

Tags:

wordpress

I have a question. I am trying to set up two domains under one wordpress instance.

For instance, I have a wordpress site on www.site1.com

I have another domain called www.site2.com. Now, I want to run the same wordpress site that is under www.site1.com on www.site2.com

I tried using the wordpress domain mu mapping plugin

http://wordpress.org/plugins/wordpress-mu-domain-mapping/installation/

But it only allows me subdomains or directories of www.site1.com

Can anyone help?

like image 661
denis Avatar asked Jun 10 '26 15:06

denis


1 Answers

Add

define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] );
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] );

to wp-config.php.

like image 171
Andre Avatar answered Jun 13 '26 11:06

Andre



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!