Re: rewrite rule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just put ^(n=3)$ and it will work

On Mar 12, 2010 3:34 AM, "Francis GALIEGUE" <fge@xxxxxxxxxxxx> wrote:

On Thu, Mar 11, 2010 at 16:56, Richard Schoenig

<Richard_Schoenig@xxxxxxxxx> wrote:

> So here is the issue I am having now I have separate servers I am trying to > set this rule up on ...

[...]

> RewriteCond %{QUERY_STRING}  ^(n=[3]+)$

Why [3]+? 3+ is largely enough. 3 is an atom, like any character
class. And it will match 3, 33, 333, etc, whether it is written [3]+
or 3+, so this is probably not what you want.

Remember that quantifiers (+, *, {...}) apply to the immediately preceding atom.
--

Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
fge@xxxxxxxxxxxx
40 avenue Raymond Poincaré
75116 Paris

--------------------------------------------------------------------- The official User-To-User sup...


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux