[英]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.