Quantcast
Viewing all articles
Browse latest Browse all 27852

Outbound negate condition not working

Hi,

I have the following as an outbound rule:

 <rule name="cdnLocalScript" preCondition="IsHTML">
          <match filterByTags="Script" pattern=".*/(.+)"  ignoreCase="true"/>
          <conditions>
            <add input="{URL}" negate="true" pattern="^http"/>
          </conditions>
          <action type="Rewrite" value="http://xxxxxxx/javascript/{ToLower:{R:1}}"/>
        </rule>

 The condition to exclude any remote script files (that is, those with URLs beginning http) does not work.  Can anyone see why?

 Thanks,

Paul

 


Viewing all articles
Browse latest Browse all 27852

Trending Articles