fboes/webapp-boilerplate/master/.htaccess
AddType text/cache-manifest .appcache
AddType application/x-web-app-manifest+json .webapp
AddType application/font-woff .woff
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf .ttf
AddType application/x-font-opentype .otf
AddType image/svg+xml .svg .svgz
AddEncoding gzip svgz
# DirectoryIndex index.html
Header set X-UA-Compatible "IE=edge"
<FilesMatch "^(LICENSE.txt|README.md|package.json|Gruntfile.js|config.rb)$">
Order Allow,Deny
Deny from all
</FilesMatch>
<FilesMatch "^(.git|app/|setup/|views/)">
Order Allow,Deny
Deny from all
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(LICENSE.txt|README.md|package.json|Gruntfile.js|config.rb)$ - [F,L]
RewriteRule ^(.git|app/|setup/|views/) - [F,L]
#RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::2$
#RewriteRule ^(.*) - [E=BASE:%1]
#RewriteCond %{ENV:REDIRECT_STATUS} ^$
#RewriteRule ^index.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]
#RewriteRule ^$ %{ENV:BASE}/index.php [L]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule (.+)$ %{ENV:BASE}/index.php?p=$1& [L,QSA]
</IfModule>
On Github License
Files
Download PDF of Htaccess file