【发布时间】:2016-11-01 19:24:09
【问题描述】:
我已将以下内容添加到我的 bit.ly/29bG9uv 的 .htaccess 文件中。但是,在 Internet Explorer 11 中访问 bit.ly/29bG9uv 时,它似乎并没有阻止我。
想法?需要阻止 IE11 访问者访问 bit.ly/29bG9uv
# BEGIN GD-SSL
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{SERVER_NAME} ^domain\.com$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
Header add Strict-Transport-Security "max-age=300"
</IfModule>
# END GD-SSL
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.+)$
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
【问题讨论】:
-
你为什么屏蔽一个浏览器?
标签: php .htaccess browser explorer