Skip to content

Instantly share code, notes, and snippets.

@tifidy
Forked from jdmonty/iisconfig.xml
Created March 4, 2020 13:18
Show Gist options
  • Save tifidy/a46c3abb6ea631edb1b87073ecfba867 to your computer and use it in GitHub Desktop.
Save tifidy/a46c3abb6ea631edb1b87073ecfba867 to your computer and use it in GitHub Desktop.
IIS html5 mode/pushState
<!-- https://coderwall.com/p/mycbiq -->
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment