其实,我到目前为止还没有获得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. 如何从http更改为https?
- 5. Nodejs将服务器HTTP更改为HTTPS
- 6. 可以将window.location从https更改为http
- 7. 状态更改为通过代码
- 8. 如何将wsdl端口中的http更改为https wcf
- 9. 如何将CSS元素动态更改为HTTPS或HTTP
- 10. 如何通过c#代码将密码更改为用户帐户?
- 11. 将HTTP请求代码转换为HTTPS请求代码
- 12. 如何将其更改为伪代码
- 13. 如何将此代码更改为SqlConnection?
- 14. 如何将js代码更改为php
- 15. 如何将源代码更改为AjaxControlToolkit.dll?
- 16. 如何将javascript代码更改为php
- 17. 如何将代码更改为DYNAMIC LOAD?
- 18. 如何将HTML代码更改为JavaScript?
- 19. 如何将JavaScript代码更改为Jquery?
- 20. 通过HTTP和HTTPS
- 21. 通过代理与HTTP客户端HTTPs
- 22. WCF通过HTTPS - >代理 - > HTTP
- 23. PHP - https流通过http代理
- 24. 通过代码更改在Android的时间通过代码
- 25. 如何将WordPress博客更改为https
- 26. 更新http的https到https更改
- 27. 如何更改htaccess代码,强制我的网址为https
- 28. 通过VBA Excel代码将文本框属性更改为powerpoint
- 29. 如何通过代码将JSON对象更改为数组键/值对?
- 30. 通过.htaccess将http重定向到https
哪个Web服务器您使用更指? Nginx,Apache还是别的? – shaochuancs