小编use*_*320的帖子

.htaccess:非www到www(带https)在Firefox中显示ssl_error_bad_cert_domain

我有重定向的问题,并没有在整个网络上找到解决方案......

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.
Run Code Online (Sandbox Code Playgroud)

这是我的.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] …
Run Code Online (Sandbox Code Playgroud)

.htaccess mod-rewrite ssl https no-www

5
推荐指数
1
解决办法
820
查看次数

标签 统计

.htaccess ×1

https ×1

mod-rewrite ×1

no-www ×1

ssl ×1