Well, I removed that slash and I still get 500 Internal Server Error.

Now my regex is '^/dir/another/(.*)$'.
Is there any simpler way to to this redirection?

What's the s/// syntax?

Yo'av

2009/11/4 James Pearson <[email protected]>

> On Thu, Oct 29, 2009 at 5:56 AM, Yo'av Moshe <[email protected]> wrote:
>
>> Hey,
>> I'm trying to use regex for a simple redirection without succces. Only
>> wants to redirect '/dir/another/path/to/file.ext' into
>> '/dir/newone/another/path/to/file.ext'.
>> This is what I wrote:
>> ^/dir\/another/(.*)$ -> /dir/newone/another/$1
>>
>
> Why are you only escaping one of the backslashes?  In fact, since you're
> not doing an s/// syntax, shouldn't that one not need to be escaped at all?
>
> --
> James Pearson
> --
> The best way to predict the future is to invent it.
>  - Alan Kay
>


-- 
Yo'av Moshe
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to