You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by David Copeland <da...@jsidata.ca> on 2017/07/31 19:16:26 UTC

[users@httpd] Negative Pattern Matching with DirectoryMatch

Is there a way to ReDirect for all but a certain path?

That is, is some like this possible?

<DirectoryMatch "!^/somedir">
    Redirect ......
</DirectoryMatch>

I'm using 2.4.27.

Thanks.

-- 
David Copeland
JSI Data Systems Limited
613-727-9353
www.jsidata.ca


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Negative Pattern Matching with DirectoryMatch

Posted by David Copeland <da...@jsidata.ca>.
That sound like a good idea too!

Trying to learn something new every day.

Thanks,

Dave Copeland.


On 07/31/2017 05:21 PM, Daniel wrote:
> Why not just RedirectMatch? 
>
> El 31 jul. 2017 9:28 p. m., "David Copeland"
> <david.copeland@jsidata.ca <ma...@jsidata.ca>> escribió:
>
>     Ah, okay, thanks!
>
>     Dave.
>
>     On 31/07/17 03:25 PM, Yann Ylavic wrote:
>     > On Mon, Jul 31, 2017 at 9:16 PM, David Copeland
>     > <david.copeland@jsidata.ca <ma...@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
>     <ma...@httpd.apache.org>
>     > For additional commands, e-mail: users-help@httpd.apache.org
>     <ma...@httpd.apache.org>
>     >
>
>
>     --
>     David Copeland
>     JSI Data Systems Limited
>     613-727-9353 <tel:613-727-9353>
>     www.jsidata.ca <http://www.jsidata.ca>
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>     <ma...@httpd.apache.org>
>     For additional commands, e-mail: users-help@httpd.apache.org
>     <ma...@httpd.apache.org>
>


Re: [users@httpd] Negative Pattern Matching with DirectoryMatch

Posted by Daniel <df...@gmail.com>.
Why not just RedirectMatch?

El 31 jul. 2017 9:28 p. m., "David Copeland" <da...@jsidata.ca>
escribió:

> Ah, okay, thanks!
>
> Dave.
>
> On 31/07/17 03:25 PM, Yann Ylavic wrote:
> > On Mon, Jul 31, 2017 at 9:16 PM, David Copeland
> > <da...@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
> >
>
>
> --
> David Copeland
> JSI Data Systems Limited
> 613-727-9353
> www.jsidata.ca
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Negative Pattern Matching with DirectoryMatch

Posted by David Copeland <da...@jsidata.ca>.
Ah, okay, thanks!

Dave.

On 31/07/17 03:25 PM, Yann Ylavic wrote:
> On Mon, Jul 31, 2017 at 9:16 PM, David Copeland
> <da...@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
>


-- 
David Copeland
JSI Data Systems Limited
613-727-9353
www.jsidata.ca


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Negative Pattern Matching with DirectoryMatch

Posted by Yann Ylavic <yl...@gmail.com>.
On Mon, Jul 31, 2017 at 9:16 PM, David Copeland
<da...@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