Discussion: mod_rewrite question
Afficher un message
Vieux 11/06/2007, 17h02   #3
yawnmoth
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mod_rewrite question

On May 31, 10:04 am, Jim Hayter <see.reply...@nowhere.invalid> wrote:
> yawnmothwrote:
> <snip>
>
> Without an anchor, the first rule matches anything that has "a/"
> anywhere in the URL. Try this:
>
> RewriteRule (a|b|c)/(|index\.html)$ index2.html?type=$1
>
> The $ specifies the end of the URL, so a/image.ext will not match the rule.
>
> HTH,
> Jim


Thanks!

  Réponse avec citation
 
Page generated in 0,04771 seconds with 9 queries