Skip to content

Instantly share code, notes, and snippets.

@eisisig
Forked from jdmonty/iisconfig.xml
Created October 27, 2015 17:02
Show Gist options
  • Save eisisig/80eaadc4c832cfe37362 to your computer and use it in GitHub Desktop.
Save eisisig/80eaadc4c832cfe37362 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