regex - 500 URL rewrite error for relative URLs. Is there something wrong with my outbound IIS rewrite rule? -
i having bit of difficulty achieving outbound rewrite rule in iis 7 , wondering if able double check rules?
the purpose of outbound rule rewrite href="www.domain.com" go href="/__tracking/pre_processing.php" (a script tracking before send user on way domain.com). outbound rule attempts preserve query strings domain.com?p=100&q=200 can rewritten /__tracking/pre_processing.php?p=100&q=200
<rewrite> <outboundrules> <rule name="outbound rewrite test" precondition="" enabled="false"> <match filterbytags="a" pattern="domain\.com(.*|\?.*)" /> <action type="rewrite" value="/__tracking/pre_processing.php{r:1}" /> <conditions> </conditions> </rule> </outboundrules> </rewrite>
it sounded simple enough yet when enabled rule, js , css assets weren't loading , web inspector told me getting 500 url rewrite error on things such as
<link rel="stylesheet" type="text/css" href="/common/style.css"> <script type="text/javascript" src="/common/script.js">
the rule did work however, every href="domain.com" rewritten go tracking script got these 500 errors. can fill me in on i'm missing? appreciated
Comments
Post a Comment