redirection non fonctionnelle
Bonjour,
J'aimerai mettre en place l'url rewriting sur mon site
J'ai récupérer une class de pagination me permettant de faire de l'url rewriting
http://www.monsite.eeee/handball.html
http://www.monsite.eeee/foot-6.html
http://www.monsite.eeee/tennis-1.html
http://www.monsite.eeee/actu/monde-6.html
Savez-vous comment faire pour spécifier sur mon .htacess, une réecriture de ce type :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| http://www.monsite.eeee/handball.html
en
http://www.monsite.eeee/handball.php
http://www.monsite.eeee/foot-6.html
en
http://www.monsite.eeee/foot.php?p=6
http://www.monsite.eeee/tennis-1.html
en
http://www.monsite.eeee/tennis.php?p=1
http://www.monsite.eeee/actu/monde-2.html
en
http://www.monsite.eeee/actu/monde.php?p=2 |
Peut'on faire une écriture générique, où bien dois-je écrire 200 fois la réecriture dans mon .htacess
J'ai essayé déjà essayé ceci, mais cela ne fonctionne pas :
Code:
RewriteRule ^([a-zA-Z/])+-([0-9]+)\.html $1?p=$2
URL a réecrire :
Code:
1 2 3
| http://www.monsite.eeee/actu/monde-2.html
en
http://www.monsite.eeee/actu/monde.php?p=2 |
Merci beaucoup pour votre aide