Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

action in form tag does not get rewritten

$
0
0

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

221.                -OUTBOUND_RULE_EVALUATION

<div style="display: block;" id="section_detail_221_details" class="hidden">
RuleNameregistrierung_outbound_form
Precondition
PatternSyntax0
Pattern^/original/registrations(.*)
Negatefalse
StopProcessingfalse
HasFiltertrue
HasConditionsfalse
ActionType1
ActionValuehttp://rewritten/registrierung/{R:1}
EvaluationsPerformed0
EvaluationsSucceeded0
PatternSyntaxRegex
ActionTypeRewrite
</div>

 

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
 


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>