albertogcatalan/project-envIA/master/.htaccess - Htaccess File

albertogcatalan/project-envIA/master/.htaccess

Options -Indexes
ServerSignature Off
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule favicon.ico static/favicon.ico
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php 
</IfModule>

AddType image/svg+xml svg
AddType image/svg+xml svgz

AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml

<ifmodule mod_expires.c>
 ExpiresActive On
 ExpiresDefault A3600
 <filesmatch ".(jpg|JPG|gif|GIF|png|css|ico|js)$">
  ExpiresDefault "access plus 7 day"
 </filesmatch>
</ifmodule>

php_flag zlib.output_compression On 
php_value zlib.output_compression_level 2

<Files *.js>
SetOutputFilter DEFLATE
</Files>

<Files *.css>
SetOutputFilter DEFLATE
</Files>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, REQUEST_FILENAME, static

Comments

Apache