Afficher un message
Vieux 02/05/2006, 09h57   #2
Robert Ionescu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: regex in locationmatch

Julian Wood wrote:
> I posted about this a few weeks ago and got pretty far, but now I have
> an additional requirement that I haven't been able to create a regex
> for. I'm using locationmatch like this:
>
> <LocationMatch "^/tlcprojectswiki/index.php/[^(Category)][^(Public)]">


with [^(Category)] you're excluding the characters ()aCegorty and not
the word Category.

You're looking for a negative lookahead like

<LocationMatch "^/tlcprojectswiki/index\.php/(?!(Category|Public))">

which works only with apache 2.x, since this is a PCRE and Apache 1.3
shipps with the POSIX Extended RegEx library.

--
Robert
  Réponse avec citation
 
Page generated in 0,04450 seconds with 9 queries