1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| RewriteEngine on
#RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.monsite\.com$ [NC]
RewriteRule ^(.*)$ http://www.monsite.com/$1 [QSA,R=301,L]
# Cas des xml
RewriteRule ^([a-zA-Z0-9_]+)-([a-zA-Z0-9_]+).xml$ /index.php?display=xml&file=$1&act=$2&%{QUERY_STRING} [L]
RewriteRule ^([a-zA-Z0-9_]+).xml$ /index.php?display=xml&file=$1&%{QUERY_STRING} [L]
# Cas des display comme popup ou on s'en fout de l'url
RewriteRule ^([a-zA-Z0-9_]+)--([a-zA-Z0-9_]+)-([a-zA-Z0-9_]+).html$ /index.php?display=$1&file=$2&act=$3&%{QUERY_STRING} [L]
RewriteRule ^([a-zA-Z0-9_]+)--([a-zA-Z0-9_]+).html$ /index.php?display=$1&file=$2&%{QUERY_STRING} [L]
# Cas des display xhtml normaux
RewriteRule ^([a-zA-Z0-9_]+)-([a-zA-Z0-9_]+).html$ /index.php?file=$1&act=$2&%{QUERY_STRING} [L]
RewriteRule ^([a-zA-Z0-9_]+).html$ /index.php?file=$1&%{QUERY_STRING} [L]
RewriteRule ^img/mbr_logo/([0-9]+).png$ /img/mbr_logo/index.php?mid=$1 [L]
RewriteRule ^img/al_logo/([0-9]+).png$ /img/al_logo/index.php?alid=$1 [L]
RewriteRule ^img/al_logo/([0-9]+)-thumb.png$ /img/al_logo/index.php?alid=$1&thumb=true [L]
<FilesMatch "\.(gif|jpe?g|png)$">
ErrorDocument 404 /img/404.png
</FilesMatch>
<FilesMatch "([0-9]+)(\-thumb)\.png$">
ErrorDocument 404 /img/mbr_logo/0.png
</FilesMatch>
<FilesMatch "\.(compiled\.php|class\.php|inc|log)$">
deny from all
</FilesMatch>
Deny from 86.192.20.51 |
Partager