其实,我到目前为止还没有获得SSL证书,但是当在搜索引擎中搜索我的网站时,它使用https在URL中显示。当点击该链接时,它会进入错误页面,因为我没有SSL证书。所以我想要将该slug从https更改为HTTP。但我不知道我的Cpanel应该在哪里改变。有没有人有我的问题的解决方案?请让我从我的问题中解脱出来。如何通过html/php代码将https更改为http?
0
A
回答
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
相关问题
- 1. 如何将https更改为http
- 2. 将http更改为https后,wordpress down https
- 3. 如何在源代码中使用JavaScript将每个http更改为https?
- 4. Nodejs将服务器HTTP更改为HTTPS
- 5. 可以将window.location从https更改为http
- 6. 状态更改为通过代码
- 7. 如何将wsdl端口中的http更改为https wcf
- 8. 如何将CSS元素动态更改为HTTPS或HTTP
- 9. 如何通过c#代码将密码更改为用户帐户?
- 10. 如何将HTML代码更改为JavaScript?
- 11. 如何将代码更改为DYNAMIC LOAD?
- 12. 如何将js代码更改为php
- 13. 如何将其更改为伪代码
- 14. 如何将javascript代码更改为php
- 15. 将HTTP请求代码转换为HTTPS请求代码
- 16. 如何将WordPress博客更改为https
- 17. 通过VBA Excel代码将文本框属性更改为powerpoint
- 18. 如何通过代码将JSON对象更改为数组键/值对?
- 19. 通过.htaccess将HTTPS重定向到HTTP
- 20. 通过cPanel将HTTPS重定向到HTTP
- 21. 通过.htaccess将http重定向到https
- 22. 将$ http代码修改为承诺
- 23. 如何通过代码更改代理服务器
- 24. 将javascript代码更改为jquery代码,它如何?
- 25. 如何通过C++中的代码通知DNS地址更改?
- 26. 如何通过android中的代码更改通知声音?
- 27. 如何通过C#代码更改.mdb数据库密码?
- 28. HTTP绝对链接被更改为HTTPS
- 29. 如何编码URLConnection,以便如果URL更改协议(http-> https),代码将继续工作?
- 30. 如何通过应用程序将Facebook中的HTTPS更改为HTTPE
哪个Web服务器您使用更指? Nginx,Apache还是别的? – shaochuancs