title: How do I 302 redirect all traffic to the homepage using .htaccess? Avoid infinite redirect loop?
body: <p>How can I redirect all traffic on my site to the homepage? </p>
  
  <p>We are redesigning a site for a client. On their current hosting we removed their old site, and put up a landing page (http://norbutconstruction.com/) as their main index.</p>
  
  <p>This is the code I have in a .htaccess file doing the redirect:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
     #Redirect all of the traffic to the temporary landing page
     RewriteEngine on
     RewriteRule (.*) /index.php [R=302,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>When I try to visit a page Google has indexed (http://www.norbutconstruction.com/contact-us) this results in an infinite loop. As long as I've been working with .htaccess files I seem to remember writing rules that result in infinite loops. I know this should be something very simple, but I can't even find an example of how to do this.</p>
  
  <p>Does anyone have a suggestion for how to get this code to work, or any general suggestions on how to avoid infinite loops in the .htaccess redirects? I always seem to have trouble with these.</p>
  
  <p>Thanks in advance!</p>