Htaccess File

Barbatos/InfoPlus/master/src/.htaccess

DEFLATE
SetEnv REGISTER_GLOBALS 0
SetEnv PHP_VER 5_TEST

Options +FollowSymlinks -indexes

# Optimisation des requêtes http
<IfModule expires_module>
        ExpiresActive On
        ExpiresDefault "access"
       
        ExpiresByType text/javascript "access plus 1 week"
        ExpiresByType application/javascript "access plus 1 week"
        ExpiresByType application/x-javascript "access plus 1 week"
        ExpiresByType text/css "access plus 1 week"
        ExpiresByType image/gif "access plus 1 week"
        ExpiresByType image/jpg "access plus 1 week"
        ExpiresByType image/jpeg "access plus 1 week"
        ExpiresByType image/png "access plus 1 week"
        ExpiresByType image/bmp "access plus 1 week"
</IfModule>
 
<IfModule deflate_module>
        AddOutputFilterByType DEFLATE text/php text/html text/txt text/javascript text/css application/javascript application/x-javascript
</IfModule>

<FilesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
  Header set Cache-Control "max-age=604800, public"
</FilesMatch>

FileETag none

# Pages d'erreurs
#ErrorDocument 404 /erreur.html?erreur=erreur404

# Démarrage de l'URL Rewriting
RewriteEngine on
RewriteBase /

Rewriterule ^index.html$ / [QSA,L]
Rewriterule ^([a-zA-Z0-9]+).html$ /$1/ [QSA,L,R=301]
Rewriterule ^([a-zA-Z0-9]+)$ index.php?arg1=$1 [QSA,L]

RewriteRule ^([a-zA-Z0-9]+).html$ index.php?page=$1&index=$2 [QSA,L]
RewriteRule ^([a-zA-Z0-9]+)/(index.html)*$ index.php?page=$1&index=$2 [QSA,L]

# Module + page
RewriteRule ^([a-zA-Z]+)/index-p([0-9]+).html$ index.php?page=$1&p=$2 [QSA,L]

# Module + action + id + id2 + page
RewriteRule ^([a-zA-Z-]+)/([a-zA-Z-]+)-([0-9]+)-([0-9]+)-p([0-9]+)(-[a-zA-Z0-9-]+)*.html$ index.php?page=$1&act=$2&id=$3&id2=$4&p=$5&titre=$6 [QSA,L]

# Module + action + id + page
RewriteRule ^([a-zA-Z-]+)/([a-zA-Z-]+)-([0-9]+)-p([0-9]+)(-[a-zA-Z0-9-]+)*.html$ index.php?page=$1&act=$2&id=$3&p=$4&titre=$5 [QSA,L]

# Module + action + page
RewriteRule ^([a-zA-Z-]+)/([a-zA-Z-]+)-p([0-9]+)(-[a-zA-Z0-9-]+)*.html$ index.php?page=$1&act=$2&p=$3 [QSA,L]

# Module + action + id + id2
RewriteRule ^([a-zA-Z-]+)/([a-zA-Z-]+)-([0-9]+)-([0-9]+)(-[a-zA-Z0-9-]+)*.html$ index.php?page=$1&act=$2&id=$3&id2=$4&titre=$5 [QSA,L]

# Module + action + id
RewriteRule ^([a-zA-Z-]+)/([a-zA-Z-]+)-([0-9]+)(-[a-zA-Z0-9-]+)*.html$ index.php?page=$1&act=$2&id=$3&titre=$4 [QSA,L]

# Module + action
RewriteRule ^([a-zA-Z-]+)/([a-zA-Z-]+)(-[a-zA-Z0-9-]+)*.html$ index.php?page=$1&act=$2 [QSA,L]

RewriteRule ^([a-zA-Z-]+)/([0-9]+)/([a-zA-Z-]+)(-[a-zA-Z0-9-]+)*.html$ index.php?page=$1&id=$2&act=$3 [QSA,L]
Exit mobile version