3
How can I block my site from being accessed by Iternet explorer via . htaccess? I’ve tried codes like:
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} "MSIE [6-8]" [NC]
RewriteRule ^(.*)$ http://mysite.com/ie [R=301,L]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} *MSIE*
RewriteRule ^index\.html$ http://example.com/ie/ [L]
RewriteRule ^/$ http://example.com/index.html [L]
</IfModule>
But it didn’t work, someone knows some other code that works?
I tested here in XAMPP gave Internal Server Error, put with
MSIE [10-12]
does not give the error, but also does not "block".– KaduAmaral
Check the apache configuration file to see if the Allowoverride variable is ALL, and instead of
"MSIE [6-8]" [NC]
puts*MSIE*
– henriquedpereira
Yes, in the option
<Directory "C:/xampp/htdocs">
is asAllowOverride All
– KaduAmaral
kkkk now Chrome is redirecting, but IE remains the same. : P
– KaduAmaral
I used that code and it didn’t work :(.
– Harever