title: Rewrite live site front-end to subfolder (but not /admin) and nothing on localhost
body: <p>Lots of info nearly solves this, but nothing will quite crack it yet.</p>
  
  <p>The site has a front-end (all in root basically), and an admin panel living in <code>/admin</code>. Basic stuff.</p>
  
  <p>The site runs remotely on <a href="http://www.example.com" rel="nofollow noreferrer">http://www.example.com</a> and locally on <a href="http://foo" rel="nofollow noreferrer">http://foo</a></p>
  
  <p>I want nothing <strong>locally</strong> redirected at all. </p>
  
  <p>On the <strong>live server</strong> I just want <em>front-end</em> traffic redirected to a sub-folder <code>/coming_soon</code> but no redirection on the admin panel. So the client can start work in admin, but the public will only ever see the content in <code>/coming_soon</code>. (Plus I guess the admin login page, but that's fine).</p>
  
  <p>Closest I came was:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
    RewriteCond %{HTTPS} !=on
    RewriteCond %{HTTP_HOST} !=foo
    RewriteRule ^$ /coming_soon [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>But that let me hit the "real" front-end by browsing directly to <a href="http://www.example.com/index.php" rel="nofollow noreferrer">http://www.example.com/index.php</a></p>
  
  <p>Your help much appreciated.</p>