Je n'arrive pas a mettre au point une expression régulière dans mon htacess
Mon RewriteRule:
Code : Tout sélectionner
RewriteRule ^joueur/(.*)-?([0-9]?).html$ /joueurs.php?nomJoueur=$1&p=$2 [L]
où $2 => numéro de page
Quand je tappe mon url:
Code : Tout sélectionner
http://127.0.0.1/joueur/Joueur-Luis-de-Carvalho.htmlCode : Tout sélectionner
array
'nomJoueur' => string 'Joueur-Luis-de-Carvalho' (length=21)
'p' => string '' (length=0)
Si je tappe:
Code : Tout sélectionner
http://127.0.0.1/joueur/Joueur-Luis-de-Carvalho-5.htmlCode : Tout sélectionner
array
'nomJoueur' => string 'Joueur-Luis-de-Carvalho-5' (length=23)
'p' => string '' (length=0)Alors que je voudrai:
Code : Tout sélectionner
array
'nomJoueur' => string 'Joueur-Luis-de-Carvalho' (length=23)
'p' => string '5' (length=0)Pouvez-vous m'aider svp ?
Merci beaucoup