RE: [EMAIL PROTECTED] RewriteMap and sending more then 1 var

2005-08-19 Thread Axel-Stéphane SMORGRAV
Man, mod_rewrite is the best thing that has happened to the world since sliced bread ! Don't know what I would have done without. If it's impossible to do, just do it with mod_rewrite. -ascs < Tony VanScoy wrote: > I can't say it enough, but mod_rewrite really helped me with the older IE brow

Re: [EMAIL PROTECTED] RewriteMap and sending more then 1 var

2005-08-19 Thread Tony VanScoy
Well I added set my flags back to [R,L]. I didn't have any other rewrite rules that would have matched, but it's the right thing to do. I left the [T=application/pdf] because it wouldn't be used since it's an external redirect. However, I compensated for this with a Location/Header config ...

RE: [EMAIL PROTECTED] RewriteMap and sending more then 1 var

2005-08-19 Thread Axel-Stéphane SMORGRAV
: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] RewriteMap and sending more then 1 var On Thu, Aug 18, 2005 at 04:06:51PM +0200, Axel-Stphane SMORGRAV wrote: > As an aside, the [L] ( as in [R,L] ) is not necessary either since if > the rewrite rule condition triggers, the redirect w

Re: [EMAIL PROTECTED] RewriteMap and sending more then 1 var

2005-08-19 Thread Brian Candler
On Thu, Aug 18, 2005 at 04:06:51PM +0200, Axel-Stphane SMORGRAV wrote: > As an aside, the [L] ( as in [R,L] ) is not necessary either since if the > rewrite rule condition triggers, the redirect will be immediate and no > more rewrite rules will be evaluated. Warning: what you have written there

RE: [EMAIL PROTECTED] RewriteMap and sending more then 1 var

2005-08-19 Thread Axel-Stéphane SMORGRAV
RewriteMap and sending more then 1 var Like I said, im new. It's good to know, and I'll modify my config accordingly. Thanks a bunch. - The official User-To-User support forum of the Apache HTTP Server Project. Se

Re: [EMAIL PROTECTED] RewriteMap and sending more then 1 var

2005-08-18 Thread Tony VanScoy
On 8/18/05, Axel-Stéphane SMORGRAV <[EMAIL PROTECTED]> wrote: > A redirection (HTTP 302 or friends) does not return any contents. It merely > directs the browser to request another URL which will hopefully return the > PDF document. That response should contain the header "Content-Type: > appli

RE: [EMAIL PROTECTED] RewriteMap and sending more then 1 var

2005-08-18 Thread Axel-Stéphane SMORGRAV
irect will be immediate and no more rewrite rules will be evaluated. -ascs -Original Message- From: Tony VanScoy [mailto:[EMAIL PROTECTED] Sent: Thursday, August 18, 2005 2:20 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] RewriteMap and sending more then 1 var > Just o

Re: [EMAIL PROTECTED] RewriteMap and sending more then 1 var

2005-08-18 Thread Tony VanScoy
> Just one thing: why do you set the Content-Type [T] of a redirect [R]?? > > -ascs Because I'm new and I don't know any better. I figure that since I'm sending a PDF, why not set the type? Am I wrong for doing this? - The offic

RE: [EMAIL PROTECTED] RewriteMap and sending more then 1 var

2005-08-18 Thread Axel-Stéphane SMORGRAV
Just one thing: why do you set the Content-Type [T] of a redirect [R]?? -ascs -Original Message- From: Tony VanScoy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 17, 2005 10:06 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] RewriteMap and sending more then 1 var

Re: [EMAIL PROTECTED] RewriteMap and sending more then 1 var

2005-08-17 Thread Tony VanScoy
> Have you tried it? What happened? It worked after a few modifications > Your idea is basically fine, except you should pick a character other than > |, because that character is special in a rewritemap (used to > designate a default value). (Perhaps it doesn't matter if it is in > quotes; I'v

Re: [EMAIL PROTECTED] RewriteMap and sending more then 1 var

2005-08-17 Thread Joshua Slive
On 8/17/05, Tony VanScoy <[EMAIL PROTECTED]> wrote: > .. works great. My question is about sending more then just 1 > backreference to the map program. In this case, I'm sending %1. Can I > add to that? What if i wanted to also send the HTTP_REFERER, or the > REMOTE_HOST? These values would be gre

[EMAIL PROTECTED] RewriteMap and sending more then 1 var

2005-08-17 Thread Tony VanScoy
Thanks to the help of a number of people here. I've gotten RewriteMap to work like a charm. My question is about the variables being sent to the processing program. Right now I'm using syntax like the following line ... RewriteMap pdfFile prg:/home/user/getPDF.php .. and I use that program to ma