dimadmb/rech-agent/master/.htaccess - Htaccess File

dimadmb/rech-agent/master/.htaccess

RewriteEngine On

RewriteCond %{THE_REQUEST} /index.html
RewriteRule (.*)$ / [R=301,L]

#RewriteRule ^(.*)$ http://rech-agent.ru/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !^web/.*$
RewriteRule ^(.*)$ web/$1 [QSA,L]

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
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

<FilesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "public"
#Header set Expires "Fri, 23 Dec 2016 20:00:00 GMT"
FileETag None
</FilesMatch>

<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access 10 days"
ExpiresByType js/javascript "access plus 1 months"
ExpiresByType css/css "access plus 1 months"
ExpiresByType img/png "access plus 1 months"
ExpiresByType img/jpg "access plus 1 months"
ExpiresByType img/icon "access 1 months"
ExpiresByType diagram/gif "now”
</IfModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, REQUEST_URI, THE_REQUEST

Comments

Apache