希望为 WordPress 网站的客户区域使用子域
我是这个网站的新手,与其说我是程序员,不如说我是设计师。我已经彻底寻找解决方案或答案,但到目前为止什么也没找到。
我有一个由 WordPress 提供支持的网站 (www.face.eu.com)。我们的客户可以登录该网站来下载工具。
我想要实现的是登录客户被定向到的安全区域。因此,我的想法是在子域 (www.users.face.eu.com) 上再次安装 WordPress,登录后它们将被定向到此处,该网站使用相同的主题,因此看起来相同。
这可能吗?重定向后用户会保持登录状态吗?
I am new to this site and I am a designer more so than a programmer. I have thoroughly searched for a fix or answer to this but so far found nothing.
I have a website (www.face.eu.com) that is powered by WordPress. We have customers that can log in to the site in order to download tools.
What I want to achieve is a secure area that the login customers are directed to. So, my idea was to have another installation of WordPress on a sub domain (www.users.face.eu.com) and after logging in they are directed here, the site uses the same theme therefore looks the same.
Is this possible and would it keep the user logged in after the redirect?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您安装了不同的 WordPress,则不会。这两个安装在
wp-config.php
中具有不同的 cookie 秘密,因此无法共享登录。但是,您应该能够使用 Wordpress 3 中的网络功能来完成此操作,该功能以前称为 WPMU(Wordpress MultiUser)。 http://codex.wordpress.org/Create_A_Network 上有关于如何实现此功能的详细教程。
如果您已完成这些步骤,您可以在子域上生成不同的博客,但共享插件、主题和用户。
If you have a different installation of Wordpress, then no. These two installes have different cookie secrets in
wp-config.php
and so cannot share a login.However, you should be able to accomplish this using the Network feature in Wordpress 3, which was previously named WPMU (Wordpress MultiUser). On http://codex.wordpress.org/Create_A_Network is a detailed tutorial on how to get this functioning.
If you have completed these steps, you can spawn a different blog on a subdomain, yet share plugins, themes and users.