title: How can I use .htaccess rewrite to redirect root URL to subdirectory?
body: <p>Trying to get</p>
  
  <pre><code>www.example.com
  </code></pre>
  
  <p>to go directly to</p>
  
  <pre><code>www.example.com/store
  </code></pre>
  
  <p>I have tried multiple bits of code and none work.</p>
  
  <p>What I've tried:</p>
  
  <pre><code>Options +FollowSymlinks
  RewriteEngine on
  
  RewriteCond %{HTTP_HOST} ^example.com$
  RewriteRule (.*) http://www.example.com/$1 [R=301,L]
  
  RewriteCond %{HTTP_HOST} ^(.+)\www.example\.com$
  RewriteRule ^/(.*)$ /samle/%1/$1 [L]
  </code></pre>
  
  <p>What am I doing wrong?</p>