RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d


#RewriteRule ^(.*)$ /index.php?pages=$1 [QSA,L]
RewriteRule ^(.*)$ index.php?pages=$1 [QSA]	


#Options All -Indexes
#ServerSignature Off
#Options +FollowSymLinks
#AddDefaultCharset UTF-8

#Protection XSS, clickJacking et Mime-Type
#<ifModule mod_headers.c>
#Header set X-XSS-Protection "1; mode=block"
#Header always append X-Frame-Options SAMEORIGIN
#Header set X-Content-Type-Options: "nosniff”
#</ifModule>

# protection contre les injections de fichiers
#RewriteCond %{REQUEST_METHOD} GET
#RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=http:// [OR]
#RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=(\.\.//?)+ [OR]
#RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=/([a-z0-9_.]//?)+ [NC]
#RewriteRule .* - [F]