Using 2 different domains on single Wordpress Multisite Network

everycloud
everycloud used Ask the Experts™
on
We wish to use 2 different domains (not subdomains) on our Wordpress Multisite network.

We have built a Multisite network with 2 sites. We want domain #1 to go to site #1 and domain #2 to go to site #2.

Wordpress Multisite is all installed on one server (as we think it needs to be) - so both sites are on the same server.

We’ve got Domain #1 going to site #1, but we’ve also got Domain #2 going to site #1. How do we get Domain #2 to route to site #2?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
David FavorFractional CTO
Distinguished Expert 2018

Commented:
Provide your actual domain names for testing.

Difficult to guess about what might be the problem.

Easy to test, to rule things in/out.

Author

Commented:
Hi
Thanks for your reply.
www.pierhouse.co.uk
www.pierhouse.com.au
David FavorFractional CTO
Distinguished Expert 2018

Commented:
Just looked at your sites using curl.

Just a guess. I believe you're correct, the redirect is likely being done via WordPress.

First you have to determine 100% source of problem.

The way I'd debug this is to just point the Apache DocumentRoot directories to two separate directories. Get your Apache HTTPS + HTTP/2 working for each site serving an empty directory first. This will verify there's no problem in your Apache config.

Next add in MultiSite. At this point you'll have to go through MultiSite setup + debugging guides to try + fix the problem.

Note: Since a 301 is currently being returned for your 2nd site, you must clear your browser cache manually every single site visit to see if anything has changed.

https://premium.wpmudev.org/blog/daily-tip-3-steps-to-debugging-a-wordpress-multisite-network/ provides one quick debugging guide, which will likely surface the problem.
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

Fractional CTO
Distinguished Expert 2018
Commented:
Suggestion: If you're looking for lowest cost maintenance, use 2x separate WordPress installs, rather than MultiSite.

Author

Commented:
Thank you David. We'll investigate and come back to you.

Author

Commented:
We are going for 2 separate installs as it was too difficult to troubleshoot! Thanks for your help.

Author

Commented:
Thanks!
David FavorFractional CTO
Distinguished Expert 2018

Commented:
You're welcome!

My guess is you'll love the ease of working with separate installs for all your sites.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start Today