rodrigopolo/todo-app/master/public/.htaccess - Htaccess File

rodrigopolo/todo-app/master/public/.htaccess

AddDefaultCharset UTF-8
AddCharset UTF-8 .js .css

# Rewrite
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond $1 !^(index.php|resources|robots.txt|favicon.ico)
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.+)$  index.php [PT,L]
</IfModule>

# Expire
<ifmodule mod_expires.c>
  <Filesmatch ".(jpg|jpeg|png|gif|js|css|swf|ico|woff|mp3|svg)$">
    ExpiresActive on
    ExpiresDefault "access plus 60 days"
  </Filesmatch>
</ifmodule>

# Compression
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE application/json
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

On Github License

Files

Download PDF of Htaccess file
DEFLATE, REQUEST_FILENAME

Comments

Apache