I have a wordpress site and I need the homepage ONLY to be redirected to a different homepage if the browser is IE8.
This is what i have in the header, but, it redirects every page if someone is on ie8 because the header is on every page.
<script type="text/javascript">
<!--
if ((navigator.userAgent.match("MSIE 8.0"))) {
location.replace("http://website.com/ie8/");
}
-->
</script>
Since this is in the header, every page on my site gets redirected to website.com/ie8. I only need the homepage to do it. Thoughts? Thanks.