Zend Sessions:处理 http://www.domain.com 与 http://domain.com
处理这个问题的最佳方法是什么?当用户登录domain.com 时,他们会在www.domain.com 上注销,反之亦然。
是否应该始终使用 mod_rewrite 将一个重写为另一个?这里的最佳实践是什么?
What's the best way to handle this? When a user logs in a domain.com, they are logged out on www.domain.com and vice-versa.
Should one always be rewritten to the other with mod_rewrite? What is the best practice here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我有几个域都指向同一个网站,并且我使用 HTTP 状态 301 来退回用户(永久重定向)到我的首选域。
I have a few domains that all point to the same website, and I bounce people with a HTTP Status 301 (Permanent Redirect) to my preferred domain.