namics/terrific-micro/master/.htaccess
# Disable directory listing
Options -Indexes +FollowSymLinks
# Protect hidden files, some specific files and some file types from being viewed
<Files .*>
Order Deny,Allow
Deny From All
Satisfy All
</Files>
<Files config.json>
Order Deny,Allow
Deny From All
Satisfy All
</Files>
<FilesMatch ^(Gruntfile|gulpfile).js$>
Order Deny,Allow
Deny From All
Satisfy All
</FilesMatch>
<FilesMatch ".(tpl|yml|ftl|less|scss|json|xml|md|conf|log|txt|bat|sh)$">
Order Deny,Allow
Deny From All
Satisfy All
</FilesMatch>
# Routing
RewriteEngine On
RewriteRule ^terrific/assets/(.*) app/terrific/public/assets/$1 [L]
RewriteRule ^terrific/(.*) app/terrific/public/index.php?uriparts=$1 [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# everything else goes trough index.php
RewriteRule . index.php [L]
# Compression
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>
On Github License
Files