This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: HttpPost Rewrite Rule Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
HttpPost
Newbie
Newbie


Joined: 06 February 2012
Online Status: Offline
Posts: 2
Posted: 06 February 2012 at 11:56am | IP Logged Quote HttpPost

How to write rules to match against http post data instead of URL parameters?

Back to Top View HttpPost's Profile Search for other posts by HttpPost
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -149
Posted: 07 February 2012 at 4:15am | IP Logged Quote Guests

Please, follow the FAQ and examples section

Regards
Andrew
Back to Top View Guests's Profile Search for other posts by Guests
 
HttpPost
Newbie
Newbie


Joined: 06 February 2012
Online Status: Offline
Posts: 2
Posted: 07 February 2012 at 9:25am | IP Logged Quote HttpPost

Hi Andrew,

I did not find anything in FAQ, In my case I want to redirect user to specific page when http method is POST and match with specific NVP in form collection.

If (HttpMethod = Post AND product = ‘book’) {

    Redirect user to Product/Book/Index.html

}

<form method="post" action="ProductInfo.asp">

<input name="product" />

</form>

Back to Top View HttpPost's Profile Search for other posts by HttpPost
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -149
Posted: 08 February 2012 at 7:35am | IP Logged Quote Guests

Hello,

Try using the following condition:

Code:
RewriteCond %{REQUEST_METHOD} ^POST$ [NC]


Regards
Andrew
Back to Top View Guests's Profile Search for other posts by Guests
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You can vote in polls in this forum