简体   繁体   English

重新设计的网站:从HTTPS到HTTP

[英]Redesigned website: From HTTPS to HTTP

I have a friend that had a website https://example.com . 我有一个拥有网站https://example.com的朋友。 In his website used to have online payments (hence SSL certificate). 在他的网站上曾经有在线付款(因此有SSL证书)。 Now he asked me to redesign the website and omit SSL certificate since he does not have the budget and he is not going to have online payments. 现在,他要求我重新设计网站,并省略SSL证书,因为他没有预算,也不会进行在线支付。

So, I created the redesigned website and published it. 因此,我创建了重新设计的网站并将其发布。 But now we have a problem with cached Google results showing the site's URL as https://example.com . 但是现在,我们将缓存的Google结果显示为https://example.com表示该网站的网址存在问题。 And when someone clicks on that link it takes him to the page where it says "Your connection is not private" (message is different for each browser). 并且当某人单击该链接时,它会将他带到显示“您的连接不是私有的”页面(每个浏览器的消息都不同)。

Any .htaccess changes to force HTTP, will not work, since this is something that is displayed before receiving the response from the server. 强制HTTP的任何.htaccess更改都将不起作用,因为这是在从服务器接收响应之前显示的内容。

Is there a solution to this? 有针对这个的解决方法吗? Or do i need to purchase and install an SSL certificate after all? 还是我毕竟需要购买并安装SSL证书?

Also, does SSL helps with SEO? 另外,SSL是否有助于SEO?

ps: website was created using WordPress ps:网站是使用WordPress创建的

Thanks in advance! 提前致谢!

Yes, 是,

You have to install a SSL certificate like Let's Encrypt (this one is free). 您必须安装SSL证书,例如“ 让我们加密” (此证书是免费的)。

However, keep the HTTPS because Google penalyze websites which didn't have this protocol (e-commerce or not). 但是,请保留HTTPS,因为Google会淘汰没有此协议的网站(是否有电子商务)。

By steps: 步骤:

  1. On any good hosting it is enough to contact support and ask them to install Let's Encrypt. 在任何好的主机上,只需联系支持并要求他们安装Let's Encrypt。 Your friend shouldn't worry about the budget, because Let's Encrypt is free. 您的朋友不必担心预算,因为“让我们加密”是免费的。

  2. Once your website is opening with https:// it is time to made all replacements in your database from http://your-domain to https://your-domain . 使用https://打开您的网站后,就可以从http:// your-domainhttps:// your-domain进行数据库中的所有替换。 It is enough to open phpMyAdmin tool to run those queries. 打开phpMyAdmin工具来运行这些查询就足够了。 If you do not know what queries, you can generate them with this tool https://rudrastyh.com/tools/sql-queries-generator 如果您不知道什么查询,则可以使用此工具https://rudrastyh.com/tools/sql-queries-generator生成它们

  3. The next step is to set redirect from non-ssl to ssl, you can do it in your .htaccess file, just add this lines strictly after RewriteEngine On . 下一步是设置从非SSL重定向到SSL,您可以在.htaccess文件中完成此操作,只需在RewriteEngine On之后严格添加此行即可。

     RewriteCond %{HTTPS} !=on RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L] 
  4. In your Google Webmaster tool add your website with https://. 在您的Google网站管理员工具中,使用https://添加您的网站。 If it is already there with http:// then make Change Address request via this console. 如果http://已经存在,则通过此控制台发出“更改地址”请求。

PS Yes, SSL is a positive ranking factor for SEO. PS是的,SSL是SEO的积极排名因素。

Last year Google announced that SSL website has benefit in SEO + if you're using billing form on your website, your browser will show your website as unsafe. 去年Google宣布SSL网站在SEO +中受益匪浅,如果您在网站上使用结算表格,则浏览器将显示您的网站不安全。

Let's Encrypt is free but has limited expiration period to 3 months 让我们加密是免费的,但有效期限制为3个月

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM