0

I currently have a multisite install with 4 sites and 4 domains, like so:

Site 1 -> site1.com

Site 2 -> site2.com

Site 3 -> site3.com

Site 4 -> site4.com

There was a typo in the domain of Site 3, so we changed site3.com to site3-new.com. So far so good. Now we want site3-new.com to show Site 3, and we want site3.com to show site3-new.com.

That last step is causing me endless headache. What's happening right now is that visiting site3-new.com opens up Site 3, while visiting site3.com opens Site 1 (it redirects 302 to site1.com), presumably because in wp-config site1.com is set as 'DOMAIN_CURRENT_SITE'.

What can I do to show 1 site from the multisite instalation for 2 separate domains?

Thanks.

  • Have you tried an .htaccess redirect? If you place it in the root folder of site3.com and 301 redirect everything to site3-new.com that should do it. – WebElaine Apr 25 '17 at 15:29
  • You need to show your wp-config.php custom settings. If you are using multiple domains, you cannot set DOMAIN_CURRENT_SITE to a static setting. – user42826 Apr 25 '17 at 17:14
0

I think the best way to have multiple domains on the same Multisite installation is to have a different network for each domain using https://wordpress.org/plugins/wp-multi-network/.

details of the wp-config.php setup is (including DOMAIN_CURRENT_SITE) is here https://github.com/stuttter/wp-multi-network#domainsub-domain-flexibility

But over all it depends on what interaction you want between the sites.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.