[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Waaay OT
- From: Andrew Kelly <akelly corisweb org>
- To: Getting started with Red Hat Linux <redhat-install-list redhat com>
- Subject: Waaay OT
- Date: Tue, 23 Jan 2007 15:16:27 +0100
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?
Any help VERY much appreciated.
Andy
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]