If IE Redirect

jmixmaster29

New Member
Messages
29
Reaction score
0
Points
0
Some of my elements on my site don't with with IE8 and below, so I was wondering if you could do this. I would want it to redirect the page to an "/outdated.html" page that would give links for them to upgrade. After a little bit of research, I found this:

HTML:
<!--[if IE 6]> 
  <meta http-equiv="refresh" content="0;http://www.mysite.com/outdated.html"> 
<![endif]-->

But according to some replies to where I found that, I would want:

HTML:
<!--[if lte IE 8]> 
  <meta http-equiv="refresh" content="0;http://www.mysite.com/outdated.html"> 
<![endif]-->

So would this work?
 
Last edited:

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
I think it would (not 100% sure, I dunno how the IF stuff works in html); I do see what the difference is between the two though. The difference is the first one looks to be for IE6 only, the second should be for IE 8 (and I'm guessing the "lte" means "earlier"), which is closer to what you want.

The easy way is to try it and see - if it doesn't redirect, it's not quite right. If it redirects IE8 but not IE7, it's not quite right :)
 
Last edited:

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
Note that beyond simply redirecting, you can use conditional comments to create content or styling that applies only to some versions of IE.
 
Top