简体   繁体   English

为什么我购买了 SSL 证书后,我网站的不安全版本仍然存在于 Google 上?

[英]Why does the insecure version of my website still exist on Google when I've purchased an SSL certificate?

I've recently used Heroku to purchase an ssl certificate for my website (using free dynos).我最近使用 Heroku 为我的网站购买了 ssl 证书(使用免费的 dynos)。 I'm relatively new to web programming and this is my first time trying to get a website secure.我对网络编程比较陌生,这是我第一次尝试确保网站安全。 I've run into multiple problems but my main one is that when I type into Google the name of my business (jsm websites.com), I click on the link to my website but it sends me to the insecure version of my website (just http, not https).我遇到了多个问题,但我的主要问题是,当我在 Google 中输入我的公司名称 (jsm website.com) 时,我点击了指向我网站的链接,但它会将我发送到我网站的不安全版本(只是http,而不是https)。 I'm really confused as to why this is happening, as the ssl certificate has been issued without problems and also I can access the secure version of my website when I manually type into the url bar "https://www.jsm-websites.com".我真的很困惑为什么会发生这种情况,因为 ssl 证书已经颁发没有问题,而且当我手动输入网址栏“https://www.jsm-websites”时,我可以访问我网站的安全版本.com”。 Also, some of the links on google that link to additional pages on my website (such as to the about page or the discover features page) send me to the secure version of my website.此外,谷歌上的一些链接到我网站上的其他页面(例如关于页面或发现功能页面)的链接会将我发送到我网站的安全版本。 Is there a way to just delete the insecure version of my website so that google will just send people to the secure version?有没有办法删除我网站的不安全版本,以便谷歌将人们发送到安全版本? Or do I need to do some fancy coding to direct people there manually?或者我需要做一些花哨的编码来手动指导人们吗? Thanks for your help, if I've not explained myself well please send me a question.感谢您的帮助,如果我没有很好地解释自己,请给我一个问题。 PS I am using goormide as my development environment and the url I am using is www.jsm-websites.com . PS 我使用 goormide 作为我的开发环境,我使用的网址是www.jsm-websites.com

Just put below code in your htaccess , Your domain is secured but google will read and takes time to crawl , till you don't put manually you need to put below code in只需将以下代码放入您的 htaccess 中,您的域名是安全的,但谷歌会读取并需要时间来抓取,直到您不手动放入您需要将以下代码放入

.htaccess .htaccess

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.domainaname.com/$1 [R,L]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Safari为何在用户输入密码时说我的网站不安全-Django - Why does safari say my website is insecure when a user is entering a password - Django 网站仍然不安全,但一切都已按应有的方式设置 - Website still insecure, but everything is set up as it should be 具有SSL证书的网站 - Website with SSL Certificate 为什么即使将自定义网址重定向到127.0.0.1,我仍然仍看到本地证书正在使用? - Why do I still see localhost certificate being used even when I redirect a custom url to 127.0.0.1? 我构建的CRM应用程序需要什么SSL证书? - What SSL Certificate do I need for the CRM app we've built? 为什么在附加客户端证书时出现“无法创建 SSL/TLS 安全通道”? - Why am I getting "Could not create SSL/TLS secure channel" when attaching client certificate? IIS中的“ Require SSL”证书与用于网站绑定的HTTPS证书如何相关? - How does the certificate of 'Require SSL' in IIS relate to the HTTPS certificate for website binding? 为什么即使我在 Heroku 上有 SSL,我的域也不安全? - Why is my domain not secure even when I have an SSL on Heroku? 我是否必须将SSL证书集成到我的PHP代码中? - Do i have to integrate my SSL certificate into my PHP code? 购买SSL证书时,它会自动附带根目录和中间目录吗? - when purchasing an SSL certificate, does it automatically come with a root and intermediate?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM