title: How to redirect request to subfolder and mask url on Apache
body: <p>Say my site's root url is <code>xyz.com</code>.
  I have the website content sorted year-wise, and I want the users to be redirected to <code>xyz.com/2015</code>. But the URL a user sees should remain <code>xyz.com</code>. </p>
  
  <p>The subfolder thing is just for internal use. And all files are in the subfolder itself. How do i do it? Most of the answers on web did not work for me. (I also have a index.php in root is that why?)</p>
  
  <p>My current config:</p>
  
  <pre><code>RewriteEngine On
  RewriteBase /
  RewriteRule ^/?$ http://example.com/subfolder [L,P]
  </code></pre>