I want to rewrite all links on a certain basis, looking for the value of a segment of their url. With .htaccess I was able to redirect one link, but when I try to make it as a rule, I fail. I suppose a bad syntax, here is my code.
# here single rewrite, works like a charm.
RewriteRule ^francais/Projects/template/297_tsf/dsource/projects\.xml$ http://www.mysite.com/mobile/fr/index.php/xml/projet/297_tsf/file.xml
# uh oh, trying to write a real rule, doesn't works at all.
RewriteRule ^francais/Projects/template/([a-z0-9]+)/dsource/projects\.xml$ http://www.mysite.com/mobile/fr/index.php/xml/projet/$1/file.xml [NC] [L]
any idea?