pumi11/aau/master/.htaccess
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
# if file or directory dosn't exists go to /web/index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault A7200
ExpiresByType text/html A1
</IfModule>
<IfModule mod_header.c>
# 1 day
<FilesMatch ".(jpg|jpeg|gif|png|ico|css|js|swf)$">
Header set Cache-Control "max-age=86400"
</FilesMatch>
</IfModule>
<ifmodule mod_expires.c>
<filesmatch ".(jpg|jpeg|gif|png|ico|css|js|swf)$">
ExpiresActive on
ExpiresDefault "access plus 6 day"
</filesmatch>
</ifmodule>
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
On Github License
Files