Skip to content

Instantly share code, notes, and snippets.

@mazhar266
Created August 16, 2023 07:37
Show Gist options
  • Save mazhar266/6e7335de51ff7f14cc53470841a4657c to your computer and use it in GitHub Desktop.
Save mazhar266/6e7335de51ff7f14cc53470841a4657c to your computer and use it in GitHub Desktop.
Rewrite in Azure Web Services
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="SPA">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_URI}" pattern="^/(docs)" negate="true" />
</conditions>
<action type="Rewrite" url="public" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment