jeka-kiselyov/0f/master/.htaccess
AddDefaultCharset UTF-8
RedirectMatch 404 /.git
AddDefaultCharset UTF-8
<IfModule mod_expires.c>
ExpiresActive on
# Your document html
ExpiresByType text/html "access plus 0 seconds"
# Media: images, video, audio
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"
# CSS and JavaScript
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
</IfModule>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteRule ^(.*).v[0-9.]+.css$ $1.css [L]
RewriteRule ^(.*).v[0-9.]+.less$ $1.less [L]
RewriteRule ^(.*).v[0-9.]+.js$ $1.js [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index.php|images|css|scripts|vendors|uploads|min|jstests|jstemplates)
RewriteRule ^(.*)$ index.php?rt=$1 [L,QSA]
RewriteRule ^(images|css|scripts|vendors|uploads|min)/(.*) app/public/$1/$2 [L]
RewriteRule ^(jstests)/(.*) app/tests/js/$2 [L]
RewriteRule ^(jstemplates)/pages/(.*) app/templates/pages/$2.tpl [L]
RewriteRule ^(jstemplates)/(.*) app/templates/shared/$2.tpl [L]
On Github License
Files
Download PDF of Htaccess file