Take the 2-minute tour ×

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">

Thank you!

share|improve this question
Ohh IE 6... what pain you have caused –  DerekH Jan 4 '11 at 17:17
add comment

2 Answers

  <!--[if lte IE 6]>

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.

share|improve this answer
This works, however it is redirecting versions 7 and 8 as well. How can i fix this? –  Stephanie Jan 4 '11 at 18:23
My bad, there should be a space between IE and the version - like this IE 6. I've fixed it in the answer as well. –  Franci Penov Jan 4 '11 at 18:26
Will this cause my site to be "blacklisted" in terms of SEO –  Stephanie Jan 6 '11 at 14:54
I am not a SEO expert, but likely not, as any non-IE6 agent would ignore the redirect and follow the modern version of your site. –  Franci Penov Jan 6 '11 at 17:29
add comment

Try this:

<!--[if lte IE6]>
<script type="text/javascript">
    window.location.href = "http://etterengineering.com";
share|improve this answer
Will this cause my site to be "blacklisted" in terms of SEO? –  Stephanie Jan 6 '11 at 14:58
add comment

Your Answer


