.htaccess – Show the contents of a subfolder without changing URL

Header set Cache-Control: “no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0″
RewriteEngine on
RewriteBase /example
RewriteRule ^(.*)$ /example/subfolder/$1 [nc]

With this, http://www.domain.com/example/ will show you the contents on http://www.domain.com/example/subfolder.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>