title: How do I redirect my WordPress site homepage to a landing page, while allowing the rest of the site to remain unaffected?
body: <p>Here is the simple code I have placed before the  on the Wordpress site:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt; &lt;!-- if (screen.width &lt;= 800) {
  window.location = "http://m.domain.com"; } //--&gt; &lt;/script&gt;
  </code></pre>
  
  <p>This issue is, this redirects all pages of our site to to the landing page. I only want the home page to be redirected.  How would I write this? </p>