久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Www 和非 www 站點

Www and non www sites(Www 和非 www 站點)
本文介紹了Www 和非 www 站點的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我有一個域名 http://www.testexample.com.當我登錄 http://www.testexample.com 并返回 http://testexample.com 在瀏覽器中;不顯示登錄的用戶信息.
我知道以上兩者的處理方式不同,因此它不會保留 http://www.testexample.com 的會話 在訪問 http://testexample.com 時.

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 有辦法在 TLD 上進行匹配,請告訴我.因此,每當我輸入 http://testexample.com 時,它都應該為 http://www.testexample.com

Please let me know if cakephp has a way to do a match on the TLD. So whenever I type http://testexample.com it should take session for http://www.testexample.com

我使用以下代碼從一個 URL 重定向到另一個

I am using the following code to redirect from one URL to the other

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

這是在我的本地測試機器上.這有時有效,有時無效.
此外,我已將 rewritelog 指令添加到我的 httpd.conf 文件中.但是日志文件沒有得到更新.如果有人對此有任何指示,請告訴我.

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.

推薦答案

使用 .htaccess 重定向所有 http://domain.com -> http://www.domain.com

Use .htaccess to redirect all http://domain.com -> http://www.domain.com

RewriteCond %{HTTP_HOST} !^www.domain.com
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=permanent,L]

這篇關于Www 和非 www 站點的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Cannot use #39;Object as class name as it is reserved Cake 2.2.x(不能使用 Object 作為類名,因為它是保留的 Cake 2.2.x)
Session is lost after an OAuth redirect(OAuth 重定向后會話丟失)
Pagination Sort in Cakephp 3.x(Cakephp 3.x 中的分頁排序)
CakePHP Shared core for multiple apps(CakePHP 多個應用程序的共享核心)
Login [ Auth-gt;identify() ] always false on CakePHP 3(在 CakePHP 3 上登錄 [ Auth-identify() ] 始終為 false)
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 87 bytes)(致命錯誤:允許的內存大小為 134217728 字節已用盡(嘗試分配 87 字節))
主站蜘蛛池模板: 午夜视频一区 | 精品国产欧美一区二区三区成人 | 久久99精品视频 | 黄色成人在线 | 在线播放一区二区三区 | www.99热.com | 91在线影院 | 欧美一级二级三级视频 | 日韩电影一区二区三区 | 一区二区三区四区视频 | 亚洲久视频 | 国产日韩欧美激情 | 日本三级电影在线看 | 粉嫩粉嫩芽的虎白女18在线视频 | 色综合99| 激情婷婷 | 精品一二区| 国产精品视频免费播放 | 午夜羞羞| 色婷婷久久久亚洲一区二区三区 | 国产免费播放视频 | 日批日韩在线观看 | 国产伊人精品 | 日韩在线欧美 | 亚洲中国字幕 | 久久久久久久久91 | 亚洲成人免费观看 | 欧美精品一区在线 | 欧美一区二区三区在线播放 | 国产精品久久 | 久久久国产精品视频 | 第一av| 日日操视频 | 精品久久精品 | 开操网 | 黄一级| 日本成年免费网站 | 怡红院免费的全部视频 | 日韩欧美国产精品一区 | 91免费视频观看 | 久久久免费在线观看 |