wordpress ie8 and below home page redirect

3 replies
I am working with a WordPress site whose home page won't load at all in ie8 and below. I see a lot of JavaScript and JQuery on the page and it probably isn't worth trying to figure out the issue. I'm thinking the best solution is just to redirect to a different homepage. What would be the best way to redirect all IE8 and below users to a different home page?
#home #ie8 #page #redirect #wordpress
  • Profile picture of the author WPThemeGuru
    hi rihnocl, you can use this snippet to solve your problem.

    <!--[if IE 9]>
    <script type="text/javascript">
    window.location = "http://www.ie9version.com";
    </script>
    <![endif]-->

    If your user has internet explorer version less than 9 then they will redirected to your specified page. I have heard that internet explorer will be shut down in near future. As a developer is a big relief.
    {{ DiscussionBoard.errors[9970865].message }}
  • Profile picture of the author rhinocl
    Thanks. You may be celebrating to soon. We will still have ie 7 and 8 around to deal with for a year or two plus who knows how bad the replacement will be. I've seen very few MS programs that are properly debugged before release.
    {{ DiscussionBoard.errors[9971231].message }}
  • Profile picture of the author WPThemeGuru
    Yup, i am totally agree with your view. I don't know, why they are so lazy. But finger crossed!
    {{ DiscussionBoard.errors[9973212].message }}

Trending Topics