#If rewrite mod isn't enabled
ErrorDocument 404 /erreur404.php
ErrorDocument 403 /erreur403.php
# On suit les liens symboliques 
# For security reasons, Option followsymlinks cannot be overridden.
#Options +FollowSymlinks 
Options +SymLinksIfOwnerMatch
# Activation du mod rewrite d'Apache 
RewriteEngine On
RewriteRule ^([a-zA-Z0-9\-\_\/]+)$ $1.php
# Réécriture de index.html vers index.php 
RewriteRule ^index\.html$ /index.php [L]
# Réécriture des URL des articles 

# Grande catégorie :
RewriteRule ^([0-9]+)/([a-zA-Z0-9\-]+).php$   /univers.php?id=$1&url=$2 [L]

# Marque des produits :
RewriteRule ^marque/([0-9]+)-([a-zA-Z0-9\-]+).php$   /marque.php?id=$1&url=$2 [L]

# Catégorie :
RewriteRule ^([0-9]+)/([a-zA-Z0-9\-]+)/([a-zA-Z0-9\-]+).php$   /categorie.php?id=$1&url_grande=$2&url=$3 [L]

# Fiche produit :
RewriteRule ^([0-9]+)/([a-zA-Z0-9\-]+)/([a-zA-Z0-9\-]+)/([a-zA-Z0-9\-]+).php$   /fiche-produit.php?id=$1&url_grande=$2&url_categorie=$3&url=$4 [L]

# Details de toutes les pages :
RewriteRule ^([a-zA-Z0-9\-]+)/([a-zA-Z0-9\-]+)-([0-9]+).php$   /detail.php?fixe=$1&url=$2&id=$3 [L]
# Page des rubriques :
RewriteRule ^([0-9]+)-([a-zA-Z0-9\-]+).php$   /rubrique.php?id=$1&url=$2 [L]

# Page a propos :
RewriteRule ^([a-zA-Z0-9\-]+)-([0-9]+).php$   /a-propos.php?url=$1&id=$2 [L]


### php handler provided by phpupgrader ###
# AddHandler application/x-httpd-ea-php70 .php
