我有一個問題,重定向並沒有發現整個網絡上的解決方案...的.htaccess:非WWW到www(以https)顯示ssl_error_bad_cert_domain在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會忽略它?
謝謝你的幫助!
(對不起,我標誌着文字代碼,但我沒有足夠的信譽來發布兩個以上的鏈路 - !我的工作就可以了)
非常感謝您的明確和有益的答案!我會更新證書。 – user3009320