Bonjour,
Je rencontre un problème lors de la réécriture de mes url ...
Elles peuvent être du style :
http://www.monsite.com/index.php?cat=$1&rub=$2
http://www.monsite.com/index.php?cat=$1&rub=$2&limit=$3
Mon fichier .htaccess :
-----------------------
RewriteEngine on
RewriteRule ^ref-(.*)-(.*).-(.*).html$ index.php?cat=$1&rub=$2&limit=$3 [L]
RewriteRule ^ref-(.*)-(.*).html$ index.php?cat=$1&rub=$2 [L]
-----------------------
La première règle ne fonctionne pas, la seconde oui ...
Svp, pouvez-vous me dire si les régles sont bien écrites ?
Merci par avance
Fab
Je rencontre un problème lors de la réécriture de mes url ...
Elles peuvent être du style :
http://www.monsite.com/index.php?cat=$1&rub=$2
http://www.monsite.com/index.php?cat=$1&rub=$2&limit=$3
Mon fichier .htaccess :
-----------------------
RewriteEngine on
RewriteRule ^ref-(.*)-(.*).-(.*).html$ index.php?cat=$1&rub=$2&limit=$3 [L]
RewriteRule ^ref-(.*)-(.*).html$ index.php?cat=$1&rub=$2 [L]
-----------------------
La première règle ne fonctionne pas, la seconde oui ...
Svp, pouvez-vous me dire si les régles sont bien écrites ?
Merci par avance
Fab