Skip to content

Instantly share code, notes, and snippets.

@beliy26
Forked from fredrik-lundin/web.config
Created May 27, 2019 18:29
Show Gist options
  • Save beliy26/e8b3175a478eb44b30a0b0813413b96d to your computer and use it in GitHub Desktop.
Save beliy26/e8b3175a478eb44b30a0b0813413b96d to your computer and use it in GitHub Desktop.
web.config rewrite all requests to index.html
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="redirect all requests" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" />
</conditions>
<action type="Rewrite" url="index.html" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment