Skip to content

Instantly share code, notes, and snippets.

@nehemiahj
Created August 25, 2022 20:41
Show Gist options
  • Save nehemiahj/68f201b221881f3130b2dfb282f59a74 to your computer and use it in GitHub Desktop.
Save nehemiahj/68f201b221881f3130b2dfb282f59a74 to your computer and use it in GitHub Desktop.
IIS Rewrite Rule
<rule name="Rule for Redirects">
<match url=".*" />
<conditions>
<add input="{Redirects:{PATH_INFO}}" pattern="(.+)" />
</conditions>
<action type="Rewrite" url="redirect.aspx?url={C:1}" />
</rule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment