域仅作为 https (wordpress)

Domain only works as https (wordpress)

我有以下域,它只能正确加载 "https:"

在没有 https 的域上时出现以下错误:内部错误:缺少模板 ERR_CONNECT_FAIL

如能提供有关查找位置的任何提示或可能的指导,我们将不胜感激。尝试了很多不同的东西,到目前为止还没有结果

试试这个。

     RewriteCond %{HTTPS} off
    # First rewrite to HTTPS:
    # Don't put www. here. If it is already there it will be included, if not
    # the subsequent rule will catch it.
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    # Now, rewrite any request to the wrong domain to use www.
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

它只会将用户重定向到 ssl 页面。暂时保存您的网站。