Re: Query regarding "mod_rewrite" module when handling URLs, containing "POST" data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ahh.. thanks !!! :)

More specifically, we wanted the re-directions to work only for GET-requests.
So,

                 RewriteCond %{REQUEST_METHOD} GET

did the trick !!!



Thanks a ton for the prompt reply :)


On Wed, Sep 4, 2013 at 12:42 AM, Daniel Gruno <rumble@xxxxxxx> wrote:
On 09/03/2013 09:06 PM, Ajay Garg wrote:
> Hi all.
>
> In our setup, we need to do conditional-redirects.
> Till now, we were able to accomplish them, by using a smart combination
> of "RewriteCond", "RewriteRule" and "QSA".
>
> However, we now face a situation, wherein we need to do re-directs, only
> if the original-URL does not contain POST-variables/parameters (although
> they may contain any number of GET-variables). Going through the
> "mod_rewrite" documentation, I could not find any way to do
> conditional-redirect, for URLs containing POST-variables/parameters.
>
>
> Is it even possible to accomplish via HTTPD?
> If yes, I will be grateful for pointers :)
>
>
>
> Thanks and Regards,
> Ajay
Here's a hint:

RewriteCond %{REQUEST_METHOD} ^POST$
RewriteRule ......

With regards,
Daniel.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




--
Regards,
Ajay

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux