Hi everybody,
Following my previous posts regarding my RewriteRule/Location/SetEnvIf
problem, a friend of mine suggested a neat solution, quite easy to apply.
The trick is to create, on the same machine, another vhost meant to
serve exclusively as a reverse proxy, and which will add the inten
Le 23/03/2012 07:09, Bruno Tréguier a écrit :
Le 23/03/2012 à 1:37, Igor Cicimov a écrit :
This is very interesting problem and I thought the issue was the typo
leaving your var empty. I'll have to do some research about the
mod_rewrite myself to confirm it precedes SetEnvIf in the order of
exec
Le 23/03/2012 à 1:37, Igor Cicimov a écrit :
This is very interesting problem and I thought the issue was the typo
leaving your var empty. I'll have to do some research about the
mod_rewrite myself to confirm it precedes SetEnvIf in the order of
execution.
Now I'm really curious about the soluti
This is very interesting problem and I thought the issue was the typo
leaving your var empty. I'll have to do some research about the mod_rewrite
myself to confirm it precedes SetEnvIf in the order of execution.
Now I'm really curious about the solution my self and will try to find
some explanatio
Le 23/03/2012 à 0:23, Bruno Tréguier a écrit :
1) the X-Debug-Request-URI header is correct in the HTTP response, example:
X-Debug-Request-URI: /cartes-en-ligne/checkout/
2) the X-CheckingOut header, however, is NOT set. :-(
Sorry, that was another test. The right output is of course:
X-Debu
Le 22/03/2012 à 22:50, Igor Cicimov a écrit :
"The problem I'm facing here seems to rely in the fact that the
variables I'm trying to use (like "THE_REQUEST", for example) are only
defined within mod_rewrite's scope, and are not available to other
directives like SetenvIf."
And i dont think this
Hold on, it should be SetEnvIf and not SetenvIf in your stanza!
On Mar 23, 2012 8:50 AM, "Igor Cicimov" wrote:
> "The problem I'm facing here seems to rely in the fact that the variables
> I'm trying to use (like "THE_REQUEST", for example) are only defined within
> mod_rewrite's scope, and are
"The problem I'm facing here seems to rely in the fact that the variables
I'm trying to use (like "THE_REQUEST", for example) are only defined within
mod_rewrite's scope, and are not available to other directives like
SetenvIf."
And i dont think this is correct i have used SetEnvIf with REQUEST_UR
Do you have SetEnvIf and Location togather in the config? Remove the
Location one and leave the SetEnvIf only to catch the env var for the
header. I read somewhere a case when LocationMatch was affecting SetEnvIf.
On Mar 23, 2012 1:26 AM, "Bruno Tréguier" wrote:
> Le 22/03/2012 11:11, Igor Cicim
Le 22/03/2012 11:11, Igor Cicimov a écrit :
Why don't you just do it this way:
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/ [OR]
RewriteCond %{REQUEST_URI} !^/onlinestore/checkout
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
Rewrit
Why don't you just do it this way:
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/ [OR]
RewriteCond %{REQUEST_URI} !^/onlinestore/checkout
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]
and solve your rewrite
Le 21/03/2012 à 12:57, Igor Cicimov a écrit :
Lets see ... why is mod_rewrite called mod rewrite? Probably because it
rewrites something and that something is the url.
Well, as strange as it might seem to you, I had figured that out myself,
you see. ;-)
So you need to catch
what ever you n
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" wro
Le 21/03/2012 10:15, Igor Cicimov a écrit :
U 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
U 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 ru
Hello there,
I presently have a problem when trying to mix RewriteRules and
directives. I searched the list archives but didn't find
anything similar to my situation. Let's try to be synthetic. Here are
the relevant config directives:
At "VirtualHost" level, among other things, here are the
16 matches
Mail list logo