Skip to content

Instantly share code, notes, and snippets.

@Swimburger
Created October 8, 2018 00:00
Show Gist options
  • Save Swimburger/d0d5ddf8debe8ff97140d1ba7c3e6c31 to your computer and use it in GitHub Desktop.
Save Swimburger/d0d5ddf8debe8ff97140d1ba7c3e6c31 to your computer and use it in GitHub Desktop.
Remove trailing slash redirect IIS web.config
<rule name="Remove trailing slash" stopProcessing="true">
<match url="(.*)/$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="{R:1}" />
</rule>
@Swimburger
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment