WordPress domain mapping on a multisite installation
Creating a multisite works flawless. However I'd like to use domain mapping on my subdomain based installation. I use the preferred plugin to do that and set the IP address in that to localhost. But whatever I try I always end up in the webroot listing my site folders. What would I need in order to get this going?
- Change the url of the subsite to the required domain (mapping is native since WordPress 4.5)
- Edit the Apache .conf for the site in question using Laragon's menu: Apache > sites-enabled>
- Add the mapped domains as ServerAlias - save the file
- Restart Apache
I needed this as well and just figured it out
Watch the video