Keywords: WordPress Multisite - Microsoft Azure - Technical issue - Domain Name (DNS)
bnsupport ID: ce237bd8-1549-772a-7334-b14b5cd7234f
How do I get WPMU to use the subdomain www.zzzcare.com.au? I cannot use the root zzzcare.com.au because I wish to use the Azure CDN's SSL certificate. I began by following the instructions at https://docs.bitnami.com/azure/apps/wordpress-multisite/#how-to-configure-the-domain-for-the-wordpress-multisite-main-blog with no luck. I have also tried changing this in the WPMU network domain mapping page, but that just sends me to zzzwpmu.zzz.cloudapp.azure.com. I have also tried adding domain mappings for both the www and non-www domains, but this gives me a redirect loop. I also tried changing the "primary" domain, which works best when both www and root are primary, but internal links on the page are to the root, not the www subdomain. How do I make the site use the www.zzzcare.com.au subdomain?
Here's the current state of play:
http://www.zzzcare.com.au/ returns a binary download, not a webpage.
https://www.zzzcare.com.au/ returns a binary download, not a webpage.
https://zzzcare.com.au/ returns a binary download, not a webpage.
http://zzzcare.com.au/ displays the webpage.
http://zzzwpmu.zzz.cloudapp.azure.com returns a gzipped binary download. Same for https.
http://zzzcare.com.au/wp-login.php lets me login to wp-admin for that site, but any links to network or other sites sends me to zzzwpmu.zzz.cloudapp.azure.com where I need to login again, which is fine.
I currently have two sites set up in WPMU. The root zzzwpmu.zzz.cloudapp.azure.com serves as a template only, for admin only. And zzzwpmu.zzz.cloudapp.azure.com/zzzcare which has the domains zzzcare.com.au and www.zzzcare.com.au mapped to it.
I tried "sudo ./bnconfig --machine_hostname zzzcare.com.au" but I couldn't get the domains to map properly. This seemed to work better: "sudo ./bnconfig --machine_hostname zzzwpmu.zzz.cloudapp.azure.com" but it's still not perfect.
I am using Bitnami's WordPress MultiSite, installed via Azure, unmodified. Domain names in this post have been masked, but full details are in the support bundle.
My preferred layout would be to have many wordpress websites on different domains such as www.zzzcare.com.au, www.zzzmelbourne.com.au and www.zzzsydney.com.au, (all using the same plugins and theme, with each one tweaked slightly using child templates), but also allow for subdomain wordpress sites such as brisbane.zzzcare.com.au and non-wordpress subdomains such as app.zzzcare.com.au