2017-04-13 136 views
0

其实,我到目前为止还没有获得SSL证书,但是当在搜索引擎中搜索我的网站时,它使用https在URL中显示。当点击该链接时,它会进入错误页面,因为我没有SSL证书。所以我想要将该slug从https更改为HTTP。但我不知道我的Cpanel应该在哪里改变。有没有人有我的问题的解决方案?请让我从我的问题中解脱出来。如何通过html/php代码将https更改为http?

+0

哪个Web服务器您使用更指? Nginx,Apache还是别的? – shaochuancs

回答

0

你应该添加以下重写规则在您的.htaccess文件:

RewriteCond %{HTTP:X-Forwarded-Proto} =https 
RewriteRule ^(.*)$ http: 

如果你想here

+0

谢谢lalith kumar,只是我试过你的建议,但现在我也有同样的问题?有没有其他解决方案? –

+0

参考这个http://stackoverflow.com/questions/12999910/https-to-http-redirect-using-htaccess – lalithkumar

+0

是帮助你吗? – lalithkumar

相关问题