【问题标题】:website keeps redirecting to HTTP网站不断重定向到 HTTP
【发布时间】:2016-10-07 16:52:02
【问题描述】:

我刚刚安装了我在 transip.nl 上购买的 SSL

当我查看我安装的网站时,它看起来并不顺利。

我已检查:https://www.sslshopper.com/ssl-checker.html#hostname=sloffenenpantoffels.nl

看起来不错,但事实并非如此。没有安全的标志,他仍然在说它的连接不安全。

当我检查 URL 时,它是 HTTP 而不是 HTTPS。

Webshops 是在 magento 多商店中构建的。

我已经创建了自己的域并为 SSL 选择了他自己的 IP。我将根文件夹指向 multistore 主域中的文件夹。

在我的 htaccess 文件中有一条规则:

RewriteCond %{HTTP_HOST} ^(.*)sloffenenpantoffels.nl

RewriteRule ^ - [E=MAGE_RUN_CODE:ditwiljehebben]

我希望任何人都可以在这里帮助我。

【问题讨论】:

    标签: .htaccess http magento ssl https


    【解决方案1】:

    要强制使用 SSL,只需使用以下命令:

    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-12-10
      • 1970-01-01
      • 1970-01-01
      • 2013-10-28
      • 1970-01-01
      • 1970-01-01
      • 2013-07-03
      • 1970-01-01
      相关资源
      最近更新 更多