Re: Negative Pattern Matching with DirectoryMatch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: users@xxxxxxxxxxxxxxxx
- Subject: Re: Negative Pattern Matching with DirectoryMatch
- From: Yann Ylavic <ylavic.dev@xxxxxxxxx>
- Date: Mon, 31 Jul 2017 21:25:55 +0200
- In-reply-to: <62cb2af3-5e69-4305-6269-d9b6e8b4902c@jsidata.ca>
- Reply-to: users@xxxxxxxxxxxxxxxx
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]