Is it okay to send a 301 redirect from https (if not in use)?

旧街凉风 提交于 2019-12-12 04:59:32

问题


I have my website hosted on the HTTP protocol, but my hosting service provides a default page when accessed through HTTPS. Since I'm not using SSL, from an SEO perspective, which one is more correct? a) toggle https for my website and do a 301 redirect to http://? b) just leave it like that (default https page from the web hosting co)


回答1:


A would be the cleanest solution but it shouldn't really matter. Who, besides yourself, will be trying the https page?




回答2:


I've seen problems with https vs http for websites with little domain authority, or for websites which link to a checkout with https and then link back out to https instead of http.

We recommend clients to 301 to the http version just in case this causes issues.

Try this Mod Rewrite code:

RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}


来源:https://stackoverflow.com/questions/11164590/is-it-okay-to-send-a-301-redirect-from-https-if-not-in-use

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!