Lets see ... why is mod_rewrite called mod rewrite? Probably because it
rewrites something and that something is the url. So you need to catch what
ever you need before it gets rewritten by mod_rewrite. And in your case the
Location comes too late ...
 On Mar 21, 2012 8:55 PM, "Bruno Tréguier" <[email protected]> wrote:

> Le 21/03/2012 10:15, Igor Cicimov a écrit :
>
>> Ummmm if you read your post you will find that you have answered your
>> own question. The /onlinestore/checkout matches your rewrite rule thus
>> gets redirected to index.php before the Location statement gets into
>> action. I think you need to read the apache documentation about the
>> order in which the rules and statements get executed.
>>
>
> Hi Igor,
>
> I realised that the Location statement was impacted by RewriteRules, but
> what puzzles me is that the environment variable REQUEST_URI is also
> impacted. The client requested a given URI, whatever is done then via
> RewriteRules, it seemed to me that there should be a way to save that
> information somewhere, and REQUEST_URI appeared to me as the perfect place
> for that.
>
> That way, even if the <Location> method didn't work, the SetenvIf method
> would.
>
> Thanks anyway for that answer.
>
> Regards,
>
> Bruno
>
> --
> - Service Hydrographique et Oceanographique de la Marine  -  DMGS/INF
> -  13, rue du Chatellier -  CS 92803  - 29228 Brest Cedex 2, FRANCE
> -     Phone: +33 2 98 22 17 49  -  Email: [email protected]
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@httpd.**apache.org<[email protected]>
> For additional commands, e-mail: [email protected]
>
>

Reply via email to