問:https怎么做自動跳轉http?
我的這個一直跳轉到https。這么設置跳轉到http?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^list-([0-9] ).html$ /plus/list.php?tid=$1
RewriteRule ^list-([0-9] )-([0-9] )-([0-9] ).html$ /plus/list.php?tid=$1&totalresult=$2&PageNo=$3
RewriteRule ^([0-9] ).html$ /plus/view.php?arcID=$1
RewriteRule ^view-([0-9] )-([0-9] ).html$ /plus/view.php?aid=$1&pageno=$2
#防止模板下載
RewriteRule templets/(.*).(htm)$ – [F]
#設置默認主頁及404頁面
<Files ~ "^.(htaccess|htpasswd)$">
deny from all
</Files>
ErrorDocument 404 /index.php
order deny,allow
DirectoryIndex index.html index.php
#屏蔽 uploads,data,templets 三個目錄執行php能力
RewriteRule uploads/(.*).(php)$ – [F]
RewriteRule data/(.*).(php)$ – [F]
RewriteRule templets/(.*).(php)$ – [F]
RewriteCond %{HTTP_HOST} ^(www.)?m.wjzm.net$
RewriteCond %{REQUEST_URI} !^/m/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /m/$1
RewriteCond %{HTTP_HOST} ^(www.)?m.wjzm.net$
RewriteRule ^(/)?$ m/ [L]
</IfModule>
,https怎么做自動跳轉http?
問:百度收錄的都是https?
答:您好,您的服務器部署了ssl,您以前應該做過http301到https,所以百度收錄的是https,https更安全且有利于百度收錄,推薦您加上http301到https的跳轉,以后也做https的優化。
若確定要https跳轉到http的話,您可以在www下的.htaccess文件中加上下面幾行規則即可。
RewriteCond %{HTTP:From-Https} ^on$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?wjzm.net$ [NC]
RewriteRule ^(.*)$ http://www.wjzm.net/$1 [R=301,L]
非常感謝您長期對我司的支持!
問:用https感覺百度不怎么收錄,而且還是免費的。效果也不大。還是改成http吧
答:您好,查看您已經添加,百度https的站點自動301到http了,不過要更換收錄需要等百度更新,請您知悉。
非常感謝您長期對我司的支持!