IE6 User Redirection

I am looking for IE6 code that redirects users from our new webpage to an older version.

for example, something along these lines

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

Thank!

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

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

Please note that a meta update is not recommended due to some related flaws, but should be sufficient for your purposes.

An alternative is to return HTTP 302 for the IE6 user agent.

+8
source

Try the following:

<!--[if lte IE6]>
<script type="text/javascript">
    window.location.href = "http://etterengineering.com";
</script>
<![endif]-->
0
source

Source: https://habr.com/ru/post/1783439/


All Articles