Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Waaay OT

Waaay OT

2007-01-24       - By Andrew Kelly

 Back
Reply:     1     2     3     4     5     6  

On Tue, 2007-01-23 at 09:47 -0800, Rick Stevens wrote:
> On Tue, 2007-01-23 at 15:16 +0100, Andrew Kelly wrote:
> > Hi all,
> >
> > please, forgive the OT nature of this mail, I realize it has nothing to
> > do with RH.
> > I've been googling an apparent rarity and having little luck, and
> > thought I'd try you all in a hail Mary pass. Perhaps one of you is
> > Apache guru enough to lend a hand.
> >
> > My problem is, using Mod Rewrite, how do I access payloads? I'd love
> > access to POST variables as well, of course, but right now what I
> > primarily want to know is how can I catch the contents of a GET string
> > to use in a RewriteCond.
> >
> > Concretely:
> >
> > I have a calling URI of
> > http://domain.name/index.php?var1=value1&var2=value2&var3=value3
> >
> > I want to redirect based on the value of a variable.
> >
> > PseudoCode:
> > RewriteEngine On
> > RewriteCond %{GET_VARS} var2=value2
> > RewriteRule ^/$   http://new.domain.name/path [R,L]
> >
> > Does anybody know the real code to make this happen?
>

Hi Rick, thanks for the pointer.

> I think you want to look at the "%{QUERY_STRING}" or "%{REQUEST_URI}"
> variables, not true?  

Turns out, yes, for GET anyway.
With POST, the POST_VARS are put in the _POST array and (haven't tested
yet) I have no idea if _POST is available during rewrite.

> The "%{REQUEST_METHOD}" would give you the GET or
> PUT.
>
> Oh, and the flags at the end would be "[RL]" (no comma).

Yes, comma, at least on my RH 7.3 box running Apache/1.3.29
Otherwise httpd croaks a sad death on reload.

And thank you Bob, for the tip to the right list.

Andy


__ ____ ____ ____ ____ ____ ____ ____ ____ ____
Redhat-install-list mailing list
Redhat-install-list@(protected)
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@(protected)
Subject: unsubscribe