Re: Negative Pattern Matching with DirectoryMatch

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

 



On Mon, Jul 31, 2017 at 9:16 PM, David Copeland
<david.copeland@xxxxxxxxxx> wrote:
> Is there a way to ReDirect for all but a certain path?
>
> That is, is some like this possible?
>
> <DirectoryMatch "!^/somedir">
>     Redirect ......
> </DirectoryMatch>

You could use:
  <DirectoryMatch "^(?!)/somedir">
(i.e. not followed by)


Regards,
Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[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