我在重定向时遇到问题,在整个网络上都找不到解决方案...
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却忽略了它?
谢谢您的帮助!
(很抱歉,我将文本标记为代码,但是我没有足够的声誉来发布两个以上的链接-我正在努力!)
在Chrome中,它可以正确转发到
https://www.fit-for-easa.com
-但在Firefox中,它对我来说似乎很奇怪。Firefox显示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设置都不能解决此问题,但是证书必须固定。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句