开发者

Zend Sessions: Dealing with http://www.domain.com vs. http://domain.com

开发者 https://www.devze.com 2022-12-10 18:28 出处:网络
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.

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? 开发者_C百科What is the best practice here?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消