<system.webServer> <rewrite> <outboundRules> <rule name="CDN_ReWrite_Images" enabled="false" preCondition="IsHtml" stopProcessing="true"> <match filterByTags="Img, Link, Script" pattern="^(.*)/(Images)/(.*\.(css|js|jpg|jpeg|png|gif|ico|bmp|svg|swf))" /> <action type="Rewrite" value="http://staging-cdn.dotnetheaven.netdna-cdn.com/{R:2}/{R:3}" /> <conditions> </conditions> </rule> <preConditions> <preCondition name="IsHtml" logicalGrouping="MatchAny"> <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" /> </preCondition> </preConditions> </outboundRules> </rewrite> </system.webServer>
<div> <img src="images/12112015055956AM.png" alt="Twitter" /> <asp:Image ID="Image1" runat="server" ImageUrl="~/images/12112015055956AM.png" /> </div>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)