简体   繁体   English

从HTTPS页面转到HTTP页面破坏了网站

[英]Moving From HTTPS Page To HTTP Page Breaks The Website

I use iThemes Security (formerly Better WP Security) to force ssl on the log-in, admin pages, and on a certain front-end pages. 我使用iThemes安全性(以前称为更好的WP Security)来强制在登录,管理页面和某些前端页面上使用ssl。

If you go to our contact page for example then clicked on the HOME page in firefox or opera the website will breaks! 例如,如果您访问我们的联系页面 ,然后单击Firefox或Opera中的HOME页面,则网站将中断!

Can any anyone help me solve that? 谁能帮我解决这个问题?

Thank you in advance. 先感谢您。

I solved it :) 我解决了:)

It was incorrect W3 Total Cache configuration with ssl, for more information visit this article . 使用ssl的W3 Total Cache配置不正确,有关更多信息,请访问本文

Thanks for everyone tried to help me. 谢谢大家试图帮助我。

The home link is in the https://... format and one the homepage you're loading stylesheets over regular http so the browser blocks them. 主页链接为https:// ...格式,并且是您通过常规http加载样式表的主页之一,因此浏览器将其阻止。 You have 2 choices: 您有2个选择:

Either force the home link to not use http by replacing 通过替换来强制主页链接不使用http

<a href="https://mostasharoon.org/" onclick="_gaq.push(['_trackEvent', 'outbound-widget-int', 'https://mostasharoon.org/', 'HOME']);">HOME</a>

with

<a href="http://mostasharoon.org/" onclick="_gaq.push(['_trackEvent', 'outbound-widget-int', 'https://mostasharoon.org/', 'HOME']);">HOME</a>

Or make sure all the CSS / JS files are loaded via HTTPS on the homepage. 或确保通过主页上的HTTPS加载所有CSS / JS文件。

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

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