#########
# Dev env htaccess
#########
Header set X-UA-Compatible "IE=edge"
AddType text/x-component htc
Options +FollowSymLinks
DirectoryIndex app/index.php app/index.html
RewriteEngine On
RewriteBase /
# Forbid access to directories
RewriteRule ".(git|svn|sass-cache)/?" / [F,L]
# Forbid access to files
<FilesMatch "((^(.|~)(svn|ht.*|git|[Dd][Ss]|_|rvmrc))|.(log|md|markdown)$|README|~$)">
Order deny,allow
deny from all
</FilesMatch>
# Force as attachments
<FilesMatch ".(pdf|docx?|csv|xlsx?)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
<FilesMatch ".(html|htm|js|css|hbs)$">
FileETag None
<ifModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</ifModule>
</FilesMatch>
# Force everything into app/
RewriteRule (.*) app%{REQUEST_URI}
# If the path doesn't exist, assume it's a
# JS app path and run it through the index
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) app/index.html [L]