1

将 Magento 后端设置为“在前端使用 SSL”并将不安全的 url 和安全的 url 设置为https://xxxxxxxxxxxx.com/shop时,如果我查看源 Magento 没有显示带有 https:// 的引用,因此给出不安全的内容警告..

我不知道为什么会这样。

<link rel="stylesheet" type="text/css" href="http://xxxxxxxxxxxxxx.com/shop/skin/frontend/default/default/css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" href="http://xxxxxxxxxxxxxx.com/shop/skin/frontend/base/default/css/widgets.css" media="all" />
<link rel="stylesheet" type="text/css" href="http://xxxxxxxxxxxxxx.com/shop/skin/frontend/default/default/css/sidenav.css" media="all" />
<link rel="stylesheet" type="text/css" href="http://xxxxxxxxxxxxxx.com/shop/skin/frontend/default/default/css/sidenavcollapse.css" media="all" />
<link rel="stylesheet" type="text/css" href="http://xxxxxxxxxxxxxx.com/shop/skin/frontend/default/default/css/webtex/bubble.css" media="all" />
<link rel="stylesheet" type="text/css" href="http://xxxxxxxxxxxxxx.com/shop/skin/frontend/default/default/css/print.css" media="print" />
<script type="text/javascript" src="http://xxxxxxxxxxxxxx.com/shop/js/prototype/prototype.js"></script>
<script type="text/javascript" src="http://xxxxxxxxxxxxxx.com/shop/js/lib/ccard.js"></script>
<script type="text/javascript" src="http://xxxxxxxxxxxxxx.com/shop/js/prototype/validation.js"></script>
<script type="text/javascript" src="http://xxxxxxxxxxxxxx.com/shop/js/scriptaculous/builder.js"></script>
<script type="text/javascript" src="http://xxxxxxxxxxxxxx.com/shop/js/scriptaculous/effects.js"></script>
<script type="text/javascript" src="http://xxxxxxxxxxxxxx.com/shop/js/scriptaculous/dragdrop.js"></script>
<script type="text/javascript" src="http://xxxxxxxxxxxxxx.com/shop/js/scriptaculous/controls.js"></script>
4

2 回答 2

0

进行配置更改后,您必须清除 Magento 缓存,以便 Magento 使用正确的值。

转到System > Cache Management,检查所有缓存类型并刷新。

于 2013-05-07T14:53:42.463 回答
0

遇到这种情况的其他人也应该注意,Magento 只会在实际“需要”https 时将 https 设置为加载资源的源,即当您浏览购物车、结帐或帐户页面时。

参考:

  1. https://magento.stackexchange.com/questions/896/https-layout-broken
  2. http://www.sonassi.com/knowledge-base/magento-kb/magento-https-redirect-loop/
于 2013-06-21T19:02:19.820 回答