admin管理员组文章数量:1023230
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.
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.
本文标签: Apache Site Aliases amp WordPress Multisite
版权声明:本文标题:Apache Site Aliases & WordPress Multisite 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745588166a2157726.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论