add comments and RewriteBase directive

This commit is contained in:
theshka 2015-05-25 07:41:08 -04:00
parent d13e88a0b7
commit b11a358505

View File

@ -1,9 +1,11 @@
<IfModule mod_rewrite.c> <IfModule mod_rewrite.c> # Check for mod_rewite module.
RewriteEngine On RewriteEngine On # Turn mod_rewrite module on
RewriteCond %{REQUEST_FILENAME} !-f #RewriteBase / # May be required to access sub-directories
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f # Any request that is not a file,
RewriteRule . index.php [L] RewriteCond %{REQUEST_FILENAME} !-d # Any request that is not a directory,
RewriteRule . index.php [L] # Reroute the request to index.php
</IfModule> </IfModule>
# Prevent file browsing # Prevent file browsing
Options -Indexes Options -Indexes