将 https:// 重定向到 http:// 绕过“添加例外”页
由于某些原因,Google 自定义搜索结果显示我的某些页面链接为 https://。目前唯一的解决方案是使用 htaccess 将 https:// 链接重定向到 http:// ,直到我弄清楚为什么搜索结果显示 https://
我希望重定向绕过 SSL 证书或“添加异常” " 页面并重定向到 http://
For some reasons Google custom search result shows https:// for some of my page links. The only solution for now would be to redirect the https:// links to http:// with htaccess for now until i figure out why search results are showing https://
I want the redirect to bypass the SSL cretificate or "Add Exception" page and redirect to http://
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您将无法使用 .htaccess 执行此操作,因为要让客户端获得重定向,它必须已经启动 SSL 会话(因此显示添加例外页面)。解决此问题的唯一方法是购买真正的 SSL 会话。由受信任的 CA 签署的证书。
You won't be be able to do this with .htaccess because for the client to get the redirect it will have to have already started the SSL session (and therefore shown the add exception page) The only way around this is to buy a real certificate signed by a trusted CA.
您还可以注册 Cloudflare HTTPS。他们现在免费提供。然后,您可以在整个站点上启用 SSL,并重定向到 HTTP 或 HTTPS。你的选择。这将阻止发出警告。
You could also sign up for Cloudflare HTTPS. They offer it free of charge right now. You can then enable SSL on the entire site, and redirect to HTTP, or HTTPS. Your choice. This would prevent the warning from being issued.