我有一个域名http://www.testexample.com.当我登录http://www.testexample.com并在浏览器中返回http://testexample.com时; 不显示登录的用户信息.
我知道上述两种方法都有不同的处理方式,因此在访问http://testexample.com时,它不会保留http://www.testexample.com的会话.
如果cakephp有办法在TLD上进行匹配,请告诉我.因此,每当我输入http://testexample.com时,都应该参加http://www.testexample.com的会话
我使用以下代码从一个URL重定向到另一个URL
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ps6309 [NC]
RewriteRule ps6309.domain.co.in [L,R=301]
Run Code Online (Sandbox Code Playgroud)
这是在我的本地测试机器上.这有时有效,有时则无效.
我还将rewritelog指令添加到我的httpd.conf文件中.但是日志文件没有得到更新.如果有人有任何指示,请告诉我.