This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: HttpPost Rewrite Rule
Author
Message |
HttpPost
Newbie


Joined: 06 February 2012
Posts: 2
Posted: 06 February 2012 at 11:56am

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

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 07 February 2012 at 4:15am

Please, follow the FAQ and examples section

Regards
Andrew
Back to Top
 
HttpPost
Newbie


Joined: 06 February 2012
Posts: 2
Posted: 07 February 2012 at 9:25am

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
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 08 February 2012 at 7:35am

Hello,

Try using the following condition:

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


Regards
Andrew
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version