ShaneMcC/MoneyTracker/master/src/www/.htaccess
# Don't index anything.
Options -Indexes
# Directory Indexing
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteCond %{SCRIPT_FILENAME} -d
RewriteRule . index.php?p=error403 [L]
# Rewrite Rules
RewriteEngine On
# Forbidden Files pretend they don't exist.
RewriteRule .tpl$ index.php?p=error404 [L]
RewriteRule "^(.*/)?.git/" index.php?p=error404 [L]
RewriteRule ^(templates_c|classes|inc)(/.*)?$ index.php?p=error404 [L]
# 404 Handler for files in allowed direcories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(bootstrap|templates|images|js)/.*$ index.php?p=error404 [L]
# Allowed Files
RewriteRule ^(bootstrap|templates|images|js|bankimage)/.*$ - [L]
RewriteRule ^(3rdparty)/.*(js|css)$ - [L]
RewriteRule ^(debug|test|index).php$ - [L]
# Everything Else
RewriteRule ^([^/]+)/(.+)$ index.php?p=$1&s=$2 [L]
RewriteRule ^(.*)/$ index.php?p=$1 [L]
RewriteRule ^(.*)$ index.php?p=$1 [L]
On Github License
Files