Www olmayan www siteleri

0 Cevap php

I have a domain say http://www.testexample.com. When I login to http://www.testexample.com and come back to http://testexample.com in browser; the logged in user information is not displayed.
I know that the both of the above are treated differently and hence it is not retaining the session for http://www.testexample.com while accessing http://testexample.com.

CakePHP'de TLD bir maç yapmak için bir yolu varsa lütfen bana bildirin. Ben yazdığınızda Yani http://testexample.com o http://www.testexample.com için oturum almalıdır

Ben bir URL'den diğer yönlendirmek için aşağıdaki kodu kullanıyorum

RewriteCond %{HTTPS} off   
RewriteCond %{HTTP_HOST} ps6309 [NC]   
RewriteRule ps6309.domain.co.in [L,R=301]

this is on my local test machine. This works sometimes and sometimes doesn't.
Also I have added the rewritelog directive to my httpd.conf file. But the log file is not getting updated. Please let me know if anyone has any pointers to this.

0 Cevap