简体   繁体   English

希望将子域用于WordPress网站的客户区域

[英]Looking to use a sub domain for the customer area of a WordPress site

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. 我有一个由WordPress驱动的网站(www.face.eu.com)。 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. 因此,我的想法是在子域(www.users.face.eu.com)上再次安装WordPress,并将它们定向到此处后,该站点使用相同的主题,因此外观相同。

Is this possible and would it keep the user logged in after the redirect? 这可能吗,并在重定向后使用户保持登录状态?

If you have a different installation of Wordpress, then no. 如果您有其他安装的Wordpress,则不会。 These two installes have different cookie secrets in wp-config.php and so cannot share a login. 这两个安装在wp-config.php具有不同的cookie机密,因此无法共享登录名。

However, you should be able to accomplish this using the Network feature in Wordpress 3, which was previously named WPMU (Wordpress MultiUser). 但是,您应该能够使用Wordpress 3中的网络功能(以前称为WPMU(Wordpress多用户))来完成此操作。 On http://codex.wordpress.org/Create_A_Network is a detailed tutorial on how to get this functioning. http://codex.wordpress.org/Create_A_Network上,有关于如何获得此功能的详细教程。

If you have completed these steps, you can spawn a different blog on a subdomain, yet share plugins, themes and users. 如果完成了这些步骤,则可以在子域上生成另一个博客,但可以共享插件,主题和用户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM