Apache Site Aliases & WordPress Multisite

I'm attempting to allow users to access the same multisite content on a sub-site by using both www.example as well

I'm attempting to allow users to access the same multisite content on a sub-site by using both www.example as well as www.example.

Upon initial setup, I simply redirected all allowed hosts / server aliases (e.g. www.example) to the Server Name entry (e.g. www.example). 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's address bar (a simple redirect from an Apache no longer fulfills client requirements). They are in the non-profit sector and the 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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745588167a4634671.html

相关推荐

  • Apache Site Aliases & WordPress Multisite

    I'm attempting to allow users to access the same multisite content on a sub-site by using both www.example as well

    11小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信