在IE nort上强制将HTTP重定向到https

时间:2019-02-12 11:28:23

标签: apache .htaccess http internet-explorer ssl-certificate

我已经安装了httaccess文件,用于在所有浏览器上强制重定向到https,除Internet Explorer 11版本和所有其他版本的IE之外,所有浏览器都按预期运行,

这是我的htaccess文件设置。

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} \.svn
RewriteRule .* - [F,L]
RewriteCond %{REQUEST_URI} \.git
RewriteRule .* - [F,L]

#RewriteCond %{HTTP_REFERER} !^http://(.+\.)?videomerce\.loc/ [NC]
#RewriteCond %{HTTP_REFERER} !^http://(.+\.)?manavault\.pl/ [NC]
#RewriteCond %{HTTP_REFERER} !^https://(.+\.)?manavault\.pl/ [NC]
#RewriteCond %{HTTP_REFERER} !^$
#RewriteRule api/image/.*$ images/manavault5.jpg [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php/$1 [L]

不幸的是,这些设置在IE上不起作用,

我的代码中缺少什么?任何帮助建议都会被重视

0 个答案:

没有答案