title: Using .htaccess to redirect traffic from subpages
body: <p>Im having a hard time trying to find a solution that works for my situation.</p>
  
  <p>I want to redirect any visitors to my website to / using htaccess.</p>
  
  <p>For example, if someone goes to www.example.com/thisisapage then it will redirect them back to /</p>
  
  <p>But i need it for every page on my site automatically.</p>
  
  <p>I have tried the following</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_URI} !/$
  RewriteRule $ / [R=302,L]
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Cheers,</p>