Je ne comprends pas:Comment fonctionne RewriteRule?
Options +FollowSymlinks -MultiViews
RewriteEngine on
RewriteBase/
RewriteRule ^([a-z]+\-[0-9]+)/?$ $1/home/ [R]
RewriteRule ^[a-z]+\-([0-9]+)/(home|alone)/?$ /$2.php?id=$1 [L]
RewriteRule ^.*$ http://www.anotherdomain.com/ [R=301]
pourquoi la dernière règle (et je veux dire la dernière redirection vers anotherdomain.com) toujours traitée ?.
je besoin de quelque chose comme ceci:
http://mydomain.com/some-344 ---> http://mydomain.com/some-344/home/
http://mydomain.com/some-344/ ---> http://mydomain.com/some-344/home/
http://mydomain.com/some-344/home/ ---> home.php?id=344
http://mydomain.com/some-344/alone/ ---> alone.php?id=344
http://mydomain.com/anythingelse... --> http://www.anotherdomain.com/
merci!
Wow! cela fonctionne comme je m'y attendais !!!, merci pour les conseils. – coma