Salut,
Merci pour ton coup de pouce, ce script fonctionne à condition de changer -%1-%2.php? en -%2-%1.php?.
J'essaye maintenant de faire la réécriture des pages qui affichent la photo en grand format, elles ont la forme suivante:http://www.david-merlin.com/phototheque/show.php?start=0&file=168_6848.jpg&album=1 et je veux les réécrire de cette façon : http://www.david-merlin.com/phototheque/sh...p;album=$3
Le script suivant est placé dans .htaccess :
RewriteEngine On
RewriteRule ^phototheque/photos-([0-9]*)-([0-9_[A-Za-z]*)-([0-9]*)\.php$ /phototheque/show.php?start=$1&file=$2&album=$3 [L]
RewriteCond %{QUERY_STRING} ^start=(.+)&file=(.+)&album=(.+)$
RewriteRule ^phototheque/show.php$ http://www.david-merlin.com/phototheque/photos-%1-%2-%3.php? [L]
Conséquence : une page d'erreur 404 !
Merci de votre aide !