0

I recently installed a Wordpress Multisite and have set everything up. The one aspect that seems to have severally lacking information is how to map custom domains to each sub-site (i.e. jcs.examplesite.com to joescrabshack.com). I did see there is a plugin that 1000s of people used to do this, but it hasn't been supported now with further development in 3+ years and seems to unreliable moving forward. If anybody could share resources or tutorials on how to map sub-sites to custom domain names, I would greatly appreciate. Do I need to have a separate IP address for each to redirect via DNS?

Thank you

  • I haven't tried this for a while now, but the docs say "In WordPress 4.5+, domain mapping is a native feature." Are you sure it's not on the dashboard somewhere? No, separate IP addresses wouldn't help. – Rup Jul 12 at 16:49
  • Rup, that is certainly correct. Not sure how I missed that, but it is indeed on a tabbed section within the admin panel. Thank you for that link! – TheDrupe Jul 12 at 17:21
0

As you might already know, this is done via the Edit button for the site. That contains all of the wp-options table rows for that sub-site. I always go through that entire list (it is long) and change all occurances of www.example.com/site1 to www.mydomain.com (the domain name for that subsite).

Many plugins/themes store info in the wp-options table, so you have to check each entry in that subsite edit screen. Then bring up a few pages with the new domain name, and use the F12/Inspector and look at the network tab to ensure that all the requests are to the new domain name.

Note that you may also need to fix any old urls for media entries. I'd use a search/replace plugin (I use the "Better Search and Replace" one) to easily change all www.example.com/site1 to www.newdomain.com . Backup your database first, of course.

  • Thanks Rick for the advice. I only went down a dozen or so lines, so that may have been in issue in the future. – TheDrupe Jul 14 at 0:39
  • Whenever I add a domain to an already-created subsite, I go through all screens of the edit page for that site. I invariably find the old URL in there - and it's usually from a plugin - that needs to be changed. (BTW, if my answer was correct or helpful, clicking the checkmark alerts others about it being correct. Standard procedure around the 'stack'. Along with a vote up if you find an answer on another question to be useful or good.) – Rick Hellewell Jul 15 at 6:14

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.