.htaccess:非 www 到 www(使用 https)在 Firefox 中显示 ssl_error_bad_cert_domain
.htaccess: non www to www (with https) shows ssl_error_bad_cert_domain in Firefox
我遇到重定向问题,在整个网络上都找不到解决方案...
The right domain is: https://www.fit-for-easa.com
The following redirections DO work:
http://fit-for-easa.com to https://www.fit-for-easa.com
http://www.fit-for-easa.com to https://www.fit-for-easa.com
But the problem is with:
https://fit-for-easa.com
In Chrome it is forwarded correctly to https://www.fit-for-easa.com -
but not in Firefox what seems very strange to me.
Firefox shows ssl_error_bad_cert_domain.
这是我的 .htaccess 文件:
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://www.fit-for-easa.com%{REQUEST_URI} [L,R=301]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
会不会是证书只对www版不对非www版的问题?那个 Firefox 接受了这个关键而 Chrome 忽略了它?
感谢您的帮助!
(抱歉,我将文本标记为代码,但我没有足够的声誉 post 超过两个链接 - 我正在努力!)
In Chrome it is forwarded correctly to https://www.fit-for-easa.com
-
but not in Firefox what seems very strange to me.
Firefox shows ssl_error_bad_cert_domain.
它在 Chrome 中对我也不起作用。也许它对你有用,因为你之前添加了一个例外。原因很简单:名称fit-for-easa.com
不包含在证书中,只有带有www
前缀的名称。来自证书:
Subject: OU=Domain Control Validated, OU=PositiveSSL Multi-Domain, CN=3wertig.com
...
X509v3 Subject Alternative Name:
DNS:3wertig.com, DNS:www.fit-for-easa.com, DNS:www.steuerberatung-zodel.de
要从 https://fit-for-easa.com
重定向到任何其他站点,您的证书必须包含 URL 中显示的名称,即 fit-for-easa.com
而不是 www.fit-for-easa.com
。没有 htaccess 设置或 DNS 设置可以解决此问题,但必须修复证书。
我遇到重定向问题,在整个网络上都找不到解决方案...
The right domain is: https://www.fit-for-easa.com
The following redirections DO work:
http://fit-for-easa.com to https://www.fit-for-easa.com
http://www.fit-for-easa.com to https://www.fit-for-easa.com
But the problem is with:
https://fit-for-easa.com
In Chrome it is forwarded correctly to https://www.fit-for-easa.com -
but not in Firefox what seems very strange to me.
Firefox shows ssl_error_bad_cert_domain.
这是我的 .htaccess 文件:
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://www.fit-for-easa.com%{REQUEST_URI} [L,R=301]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
会不会是证书只对www版不对非www版的问题?那个 Firefox 接受了这个关键而 Chrome 忽略了它?
感谢您的帮助!
(抱歉,我将文本标记为代码,但我没有足够的声誉 post 超过两个链接 - 我正在努力!)
In Chrome it is forwarded correctly to
https://www.fit-for-easa.com
- but not in Firefox what seems very strange to me. Firefox shows ssl_error_bad_cert_domain.
它在 Chrome 中对我也不起作用。也许它对你有用,因为你之前添加了一个例外。原因很简单:名称fit-for-easa.com
不包含在证书中,只有带有www
前缀的名称。来自证书:
Subject: OU=Domain Control Validated, OU=PositiveSSL Multi-Domain, CN=3wertig.com
...
X509v3 Subject Alternative Name:
DNS:3wertig.com, DNS:www.fit-for-easa.com, DNS:www.steuerberatung-zodel.de
要从 https://fit-for-easa.com
重定向到任何其他站点,您的证书必须包含 URL 中显示的名称,即 fit-for-easa.com
而不是 www.fit-for-easa.com
。没有 htaccess 设置或 DNS 设置可以解决此问题,但必须修复证书。