httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yann Ylavic <ylavic....@gmail.com>
Subject Re: [users@httpd] Negative Pattern Matching with DirectoryMatch
Date Mon, 31 Jul 2017 19:25:55 GMT
On Mon, Jul 31, 2017 at 9:16 PM, David Copeland
<david.copeland@jsidata.ca> 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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message