Darklg/InteGentoMageTools/master/files/default.htaccess
###############################################################################################
#### COMMON RULES
###############################################################################################
Options -Indexes
DirectoryIndex index.php
## Default PHP values
<IfModule mod_php5.c>
php_value output_buffering 4096
php_value memory_limit 512M
php_value max_execution_time 7200
php_value max_input_time -1
php_value default_socket_timeout 60
php_value pdo_mysql.cache_size 2000
php_value mysql.allow_persistent On
php_value date.timezone "Europe/Paris"
php_flag magic_quotes_gpc off
php_flag session.auto_start off
php_flag suhosin.session.cryptua off
php_flag zend.ze1_compatibility_mode Off
php_flag zlib.output_compression on
</IfModule>
## Security
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
## Rewrites
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]
</IfModule>
## Deny access to logs & release notes
<Files RELEASE_NOTES.txt>
order allow,deny
deny from all
</Files>
<Files *.log>
order allow,deny
deny from all
</Files>
## ETag
FileETag MTime Size
## Default charset
AddDefaultCharset UTF-8
## Cache
<IfModule mod_expires.c>
ExpiresDefault "access plus 1 year"
ExpiresActive on
ExpiresByType image/jpg "access plus 6 months"
ExpiresByType image/jpeg "access plus 6 months"
ExpiresByType image/gif "access plus 6 months"
ExpiresByType image/png "access plus 6 months"
ExpiresByType text/ico "access plus 6 months"
ExpiresByType image/ico "access plus 6 months"
ExpiresByType image/icon "access plus 6 months"
ExpiresByType image/x-icon "access plus 6 months"
ExpiresByType application/x-shockwave-flash "modification plus 6 months"
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType text/html "modification plus 1 week"
ExpiresByType text/xml "modification plus 2 hours"
ExpiresByType image/vnd.microsoft.icon "access plus 6 months"
ExpiresDefault "access plus 1 week"
</IfModule>
## Compression
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/*
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png|swf|ico)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI .(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI .pdf$ no-gzip dont-vary
</IfModule>
## Proxies
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
Header set Cache-Control "max-age=86400, public"
<FilesMatch "\.(ico|jpe?g|png|gif|swf|css|gz)$">
Header set Cache-Control "max-age=2592000, public"
</FilesMatch>
<FilesMatch "\.(js)$">
Header set Cache-Control "max-age=2592000, private"
</FilesMatch>
<FilesMatch ".(pl|php|cgi|spl|scgi|fcgi|htm|html)$">
Header unset Cache-Control
</FilesMatch>
</IfModule>
On Github License
Files