Skip to content

Instantly share code, notes, and snippets.

@rbaty-barr
Created October 14, 2019 15:52
Show Gist options
  • Save rbaty-barr/6084519e705ecffc02eac3b7d9ce9bd8 to your computer and use it in GitHub Desktop.
Save rbaty-barr/6084519e705ecffc02eac3b7d9ce9bd8 to your computer and use it in GitHub Desktop.
regex for url rewrite
<rule name="removeArticles" stopProcessing="true">
<match url="(\/[^\/]*?)\/articles(\/.*)"/>
<action type="Rewrite" url="{R:1}{R:2}" appendQueryString="true" />
</rule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment