title: Redirect single page if browser is ie 8
body: <p>I have a wordpress site and I need the homepage ONLY to be redirected to a different homepage if the browser is IE8.</p>
  
  <p>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.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  &lt;!--
  if ((navigator.userAgent.match("MSIE 8.0"))) {
    location.replace("http://website.com/ie8/");
  }
  --&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>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.</p>