What is the best way to redirect old Internet Explorer users to a new page?
Posted on 2013-12-09
I've been searching and not yet found a good solution that just works, quickly. In the past I've had a div that is hidden and if IE 8 or before it is set to be visible and covers the rest of the site beneath with a warning upgrade message.
I want a better solution where the user is just sent to a different page altogether.
I've tried loads of suggestions I've found online and none other than the one below have worked for me.
<!--[if lt IE 9]><meta http-equiv="refresh" content="0;URL=http://mysite.com/update.php"><![endif]-->
This one does work, though it is slow, the page seems to render before this redirect occurs. So older IE users see the page kind of load but not look as it should, then redirect. I obviously don't want them seeing this, I just want the redirect to be instant.
Can anyone help me with the best way to achieve this please?