是否可以从https发送301重定向(如果未使用)? [英] Is it okay to send a 301 redirect from https (if not in use)?

查看:201
本文介绍了是否可以从https发送301重定向(如果未使用)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站托管在HTTP协议上,但是当通过HTTPS访问时,托管服务会提供一个默认页面.由于我没有使用SSL,因此从SEO角度来看,哪一个更正确? a)在我的网站上切换https并执行301重定向到http://吗? b)像这样保留它(网络托管公司的默认https页面)

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)

推荐答案

对于域权限很少的网站,或者链接到使用https结帐然后又链接回https的网站,我已经看到https vs http的问题而不是http.

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.

我们建议客户端使用301版本的http版本,以防万一这会导致问题.

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

尝试使用此Mod重写代码:

Try this Mod Rewrite code:

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

这篇关于是否可以从https发送301重定向(如果未使用)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆