Hello all,
We have a W2008R2 + IIS7.5 + IIS URL Rewrite 2.0 + Tomcat 7.
A website with a form are served from Tomcat.
On that website, the form has an "action" attribute and whose content DOES NOT get rewritten.
Every other entry on the page for "original" is replaced by "rewritten".
In the browser the page source shows the following:
<form accept-charset="UTF-8"action="/original/registrations"class="new_registration"id="new_registration"method="post">
The rules:
<rule name="registrierung_inbound" stopProcessing="false"><match url="^registrierung(/)?(.*)" /><action type="Rewrite" url="http://localhost:8080/ccv2012/{R:2}" appendQueryString="false" /><serverVariables><set name="HTTP_ACCEPT_ENCODING" value="" /></serverVariables></rule> ...<outboundRules><clear /><rule name="registrierung_outbound" preCondition="" enabled="true" stopProcessing="false"><match filterByTags="A, Area, Base, Frame, Head, IFrame, Img, Input, Link, Script" pattern="^/original/(.*)" /><conditions logicalGrouping="MatchAll" trackAllCaptures="true"></conditions><action type="Rewrite" value="http://rewritten/registrierung/{R:1}" /></rule><rule name="registrierung_outbound_form" preCondition="" enabled="true" stopProcessing="false"><match filterByTags="Form" pattern="^/original/registrations(.*)" /><conditions logicalGrouping="MatchAll" trackAllCaptures="true"></conditions><action type="Rewrite" value="http://rewritten/registrierung/{R:1}" /></rule> ...
Tracing only tells me that it applied the rule 0 times
<div style="display: block;" id="section_detail_221_details" class="hidden">RuleName | registrierung_outbound_form |
---|---|
Precondition | |
PatternSyntax | 0 |
Pattern | ^/original/registrations(.*) |
Negate | false |
StopProcessing | false |
HasFilter | true |
HasConditions | false |
ActionType | 1 |
ActionValue | http://rewritten/registrierung/{R:1} |
EvaluationsPerformed | 0 |
EvaluationsSucceeded | 0 |
PatternSyntax | Regex |
ActionType | Rewrite |
I even tried separating the outbound rules to set one specifically for the FORM tag, but to no avail.
Any ideas would be greatly appreciated.
Sincerely,
Norbs