Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redirecting IE6 Users

I am searching for an IE6 code which will redirect users from our brand new web page to an older version.

for example something along these lines

<!--[if lte IE6]>
<a href="http://etterengineering.com">
<![endif]-->

Thank you!

like image 485
Stephanie Avatar asked Dec 15 '25 10:12

Stephanie


1 Answers

  <!--[if lte IE 6]>
  <meta http-equiv="refresh" content="0;url=http://example.com/" />
  <![endif]-->

Put this in the head of your page and change the URl to the correct one. This will work even if the user has disabled JS.

Note that meta refresh is discouraged due to some associated drawbacks, but for your purposes should be good enough.

The alternative is to return HTTP 302 for IE6 user agent.

like image 157
Franci Penov Avatar answered Dec 17 '25 01:12

Franci Penov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!