Apache Site Aliases & WordPress Multisite

All,

I’m attempting to allow users to access the same multisite content on a subsite by using both www.site.com as well as www.site.org.

Upon initial setup, I simply redirected all allowed hosts / server aliases (www.site.org) to the ServerName entry (www.site.com). This worked fine for the last few months.

However, I was recently approached by the client who is requesting the requested domain remain in the browser bar (a simple redirect from an Apache no longer fulfills client requirements). They are in the non-profit sector and the .org extension is important to them.

With single-site setups, I’d usually use update_option(‘siteUrl’, $_SERVER[‘SERVER_NAME’] to achieve this functionality. However, with a multisite, my research suggests that those hooks do not work the same way.

What is the secret to doing this? I find it hard to believe we can’t have a similar functionality in the multisite world.

Thanks,
Sean

Read more here:: Apache Site Aliases & WordPress Multisite

Leave a Reply

Your email address will not be published. Required fields are marked *