LouisLoode/ProjetS3/master/.htaccess - Htaccess File

LouisLoode/ProjetS3/master/.htaccess

<IfModule mod_php5.c>
    php_flag display_errors on
</IfModule>

RewriteEngine On

#RewriteCond %{QUERY_STRING} ^(.*)http(:|%3A)(.*)$ ReWriteRule .* - F

# URL rewrite général
RewriteRule ^([a-zA-Z0-9&]+).html$                        index.php?page=$1 [QSA,L]

# URL général qui prend en compte les pages
RewriteRule ^([a-zA-Z0-9&]+)-([0-9]+).html$                  index.php?page=$1&id=$2 [QSA,L]

# URL général qui prend en compte les pages
RewriteRule ^([a-zA-Z0-9&]+)-([0-9]+)-([0-9]+).html$              index.php?page=$1&id=$2&p=$3 [QSA,L]

# URL rewrite des utilisateurs
RewriteRule ^utilisateur-voir-([0-9]+).html$                   index.php?page=utilisateurs&action=voir&id=$2 [QSA,L]
RewriteRule ^utilisateur-modifier.html$                     index.php?page=utilisateurs&action=modifier [QSA,L]

On Github License

Files

Download PDF of Htaccess file
QUERY_STRING

Comments

Apache