0byt3m1n1
Path:
/
home
/
kassiope
/
www
/
[
Home
]
File: .htaccess
##### Set Change jpg --> Webp <IfModule mod_rewrite.c> RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{REQUEST_URI} (?i)(.*)(\.jpe?g|\.png)$ RewriteCond %{DOCUMENT_ROOT}%1.webp -f RewriteRule (?i)(.*)(\.jpe?g|\.png)$ %1\.webp [L,T=image/webp,R] </ifModule> ##### Set Header Vary: Accept-Encoding <IfModule mod_headers.c> Header append Vary Accept env=REDIRECT_accept AddType image/webp .webp </ifModule> <IfModule mod_headers.c> <FilesMatch ".(js|css|xml|gz|html)$"> Header append Vary: Accept-Encoding </FilesMatch> </IfModule> ##### Optimize default expiration time - BEGIN <IfModule mod_expires.c> ## Enable expiration control ExpiresActive On ## CSS and JS expiration: 1 week after request ExpiresByType text/css "now plus 1 week" ExpiresByType application/javascript "now plus 1 week" ExpiresByType application/x-javascript "now plus 1 week" ## Image files expiration: 1 month after request ExpiresByType image/bmp "now plus 1 month" ExpiresByType image/gif "now plus 1 month" ExpiresByType image/jpeg "now plus 1 month" ExpiresByType image/jp2 "now plus 1 month" ExpiresByType image/pipeg "now plus 1 month" ExpiresByType image/png "now plus 1 month" ExpiresByType image/svg+xml "now plus 1 month" ExpiresByType image/tiff "now plus 1 month" ExpiresByType image/x-icon "now plus 1 month" ExpiresByType image/ico "now plus 1 month" ExpiresByType image/icon "now plus 1 month" ExpiresByType text/ico "now plus 1 month" ExpiresByType application/ico "now plus 1 month" ExpiresByType image/vnd.wap.wbmp "now plus 1 month" ## Font files expiration: 1 week after request ExpiresByType application/x-font-ttf "now plus 1 week" ExpiresByType application/x-font-opentype "now plus 1 week" ExpiresByType application/x-font-woff "now plus 1 week" ExpiresByType font/woff2 "now plus 1 week" ExpiresByType image/svg+xml "now plus 1 week" ## Audio files expiration: 1 month after request ExpiresByType audio/ogg "now plus 1 month" ExpiresByType application/ogg "now plus 1 month" ExpiresByType audio/basic "now plus 1 month" ExpiresByType audio/mid "now plus 1 month" ExpiresByType audio/midi "now plus 1 month" ExpiresByType audio/mpeg "now plus 1 month" ExpiresByType audio/mp3 "now plus 1 month" ExpiresByType audio/x-aiff "now plus 1 month" ExpiresByType audio/x-mpegurl "now plus 1 month" ExpiresByType audio/x-pn-realaudio "now plus 1 month" ExpiresByType audio/x-wav "now plus 1 month" ## Movie files expiration: 1 month after request ExpiresByType application/x-shockwave-flash "now plus 1 month" ExpiresByType x-world/x-vrml "now plus 1 month" ExpiresByType video/x-msvideo "now plus 1 month" ExpiresByType video/mpeg "now plus 1 month" ExpiresByType video/mp4 "now plus 1 month" ExpiresByType video/quicktime "now plus 1 month" ExpiresByType video/x-la-asf "now plus 1 month" ExpiresByType video/x-ms-asf "now plus 1 month" </IfModule> ##### Optimize default expiration time - END ##### 1 Month for most static resources <filesMatch ".(css|jpg|jpeg|png|gif|js|ico|svg|webp|woff|woff2)$"> Header set Cache-Control "max-age=31536000, public" </filesMatch> ##### Enable gzip compression for resources <ifModule mod_gzip.c> mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file .(html?|txt|css|js|php)$ 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> ##### Compress resources 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 ### Interdit l'affichage des fichiers autre que .html et .php <FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module|exe|asa)$"> deny from all </FilesMatch> ### Configuration pour les fichiers .htaccess et .htpasswd <Files ~ "^\.ht"> Order allow,deny Deny from all Satisfy All </Files> ### Interdit l'affichage du fichier info.inc.php <Files ~ "\info.inc.php$"> deny from all </Files> ### Interdit l'affichage du fichier info.inc.php <Files ~ "\configuration.inc.php$"> deny from all </Files> RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L] RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteRule ^conditions-generales-de-vente\.html$ static.php?id=1 [NC,L] RewriteRule ^mentions-legales-(.+)\.html$ static.php?id=7 [NC,L] RewriteRule ^contact-(.+)\.html$ utilisateurs/contact.php [NC,L] RewriteRule ^(.+)-(.+)-(.+)-marque-(.+)\.html$ achat/index.php?catid=$1&markid=$2&machine=$3 [NC,L] RewriteRule ^(.+)-(.+)-(.+)-boutique-(.+)\.html$ achat/index.php?catid=$1&tri=$2&start=$3 [NC,L] RewriteRule ^(.+)-(.+)-boutique-(.+)\.html$ achat/index.php?catid=$1&tri=$2 [NC,L] RewriteRule ^(.+)-boutique-(.+)\.html$ achat/index.php?catid=$1 [NC,L] RewriteRule ^boutique-(.+)\.html$ achat/index.php [NC,L] RewriteRule ^(.+)-actualites-(.+)\.html$ blog.php?ident=9&idblog=$1 [NC,L] RewriteRule ^actualites-(.+)\.html$ blog.php?ident=9 [NC,L] RewriteRule ^mon-compte\.html$ compte.php [NC,L] RewriteRule ^connexion\.html$ membre.php [NC,L] RewriteRule ^creer-un-compte-revendeur\.html$ utilisateurs/retailer.php [NC,L] RewriteRule ^creer-un-compte\.html$ utilisateurs/enregistrement.php [NC,L] RewriteRule ^oubli-mot-passe\.html$ utilisateurs/oubli_mot_passe.php [NC,L] RewriteRule ^achats-rapides\.html$ achat/achats_rapides.php [NC,L] RewriteRule ^mes-envies\.html$ achat/mes_envies.php [NC,L] RewriteRule ^mes-preferes\.html$ achat/mes_envies.php [NC,L] RewriteRule ^mon-panier-(.+)-ko\.html$ achat/caddie_affichage.php?so=ko [NC,L] RewriteRule ^mon-panier-(.+)-ok\.html$ achat/achat_maintenant.php?so=ok [NC,L] RewriteRule ^mon-panier\.html$ achat/caddie_affichage.php [NC,L] RewriteRule ^(.+)-(.+)-(.+)-c-(.+)\.html$ achat/index.php?catid=$1&tri=$2&start=$3 [NC,L] RewriteRule ^(.+)-(.+)-c-(.+)\.html$ achat/index.php?catid=$1&tri=$2 [NC,L] RewriteRule ^(.+)-c-(.+)\.html$ achat/index.php?catid=$1 [NC,L] RewriteRule ^(.+)-s-(.+)-p-(.+)\.html$ static.php?ident=$1&idsous=$2 [NC,L] RewriteRule ^17-(.+)-pr-(.+)\.html$ realisations.php?ident=$1 [NC,L] RewriteRule ^17-p-(.+)\.html$ realisations.php [NC,L] RewriteRule ^18-p-(.+)\.html$ expertise.php [NC,L] RewriteRule ^alert-(.+)-(.+)-p-(.+)\.html$ achat/produit_details.php?id=$1&catid=$2&alertstock=1 [NC,L] RewriteRule ^(.+)-(.+)-p-(.+)\.html$ achat/produit_details.php?id=$1&catid=$2 [NC,L] RewriteRule ^(.+)-p-(.+)\.html$ static.php?ident=$1 [NC,L]