Waaay OT
Bob Kinney
bc98kinney at yahoo.com
Wed Jan 24 00:32:57 UTC 2007
A tribute to the empirical nature of Rick's knowledge of open source!
There are some great minds here where your question would be right on topic:
http://httpd.apache.org/userslist.html
HTH
--cat
--- Rick Stevens <rstevens at vitalstream.com> 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?
>
> I think you want to look at the "%{QUERY_STRING}" or "%{REQUEST_URI}"
> variables, not true? The "%{REQUEST_METHOD}" would give you the GET or
> PUT.
>
> Oh, and the flags at the end would be "[RL]" (no comma).
> ----------------------------------------------------------------------
> - Rick Stevens, Senior Systems Engineer rstevens at vitalstream.com -
> - VitalStream, Inc. http://www.vitalstream.com -
> - -
> - Whoever said "Money can't buy friends" obviously never brought -
> - donuts to the office. -
> ----------------------------------------------------------------------
>
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list at redhat.com
> https://www.redhat.com/mailman/listinfo/redhat-install-list
> To Unsubscribe Go To ABOVE URL or send a message to:
> redhat-install-list-request at redhat.com
> Subject: unsubscribe
>
____________________________________________________________________________________
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/
More information about the Redhat-install-list
mailing list