Negative Pattern Matching with DirectoryMatch

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Negative Pattern Matching with DirectoryMatch

David Copeland
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Negative Pattern Matching with DirectoryMatch

Yann Ylavic
On Mon, Jul 31, 2017 at 9:16 PM, David Copeland
<[hidden email]> 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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Negative Pattern Matching with DirectoryMatch

David Copeland
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
> <[hidden email]> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Negative Pattern Matching with DirectoryMatch

Daniel
Why not just RedirectMatch? 

El 31 jul. 2017 9:28 p. m., "David Copeland" <[hidden email]> 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
> <[hidden email]> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>


--
David Copeland
JSI Data Systems Limited
<a href="tel:613-727-9353" value="+16137279353">613-727-9353
www.jsidata.ca


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Negative Pattern Matching with DirectoryMatch

David Copeland

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" <[hidden email]> 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
> <[hidden email]> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>


--
David Copeland
JSI Data Systems Limited
<a href="tel:613-727-9353" value="+16137279353" moz-do-not-send="true">613-727-9353
www.jsidata.ca


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


Loading...