Skip to content

Instantly share code, notes, and snippets.

@tdavisjr
Last active April 15, 2016 03:49
Show Gist options
  • Save tdavisjr/5cd44c653b46220d8a8a2eb11d56dae1 to your computer and use it in GitHub Desktop.
Save tdavisjr/5cd44c653b46220d8a8a2eb11d56dae1 to your computer and use it in GitHub Desktop.
IIS Outbound Url Rewrite to strip HTML tags of http and make it protocol relative
<!-- outbound rules to modify HTML -->
<outboundRules>
<rule name="Remove protocol under HTTPS" enabled="true">
<match filterByTags="A, Img, Link" pattern="http://(.*)" />
<action type="Rewrite" value="//{R:1}" />
</rule>
</outboundRules>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment