cbazureau/website/master/www/cedric/.htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} ^cedric.bazureau.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://cedric.bazureau.com/$1 [R=301,L]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
AddDefaultCharset utf-8
##### GZIP Compression
# Commenter la ligne ci-dessous si plantage
# php_flag zlib.output_compression on
# Filtre
SetOutputFilter DEFLATE
# Vieux navigateurs
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0678 no-gzip
# No IE
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
# Images : pas de compression
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
# Proxy
Header append Vary User-Agent env=!dont-vary
##### Desactivation des ETags
Header unset ETag
FileETag none
##### Headers Expires
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 2 days"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
AddType image/x-icon .ico
ExpiresByType image/ico "access plus 1 year"
ExpiresByType image/icon "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType text/html "access plus 2 days"
ExpiresByType application/xhtml+xml "access plus 2 days"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType application/javascript A2592000
ExpiresByType application/x-javascript "access plus 1 month"
</IfModule>
On Github License
Files