Skip to main content

IIS rewrite rule to point all request to root directory (or index.html) on IIS server.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <rule enabled="true" name="rewrite to index" stopProcessing="true">
          <match negate="true" url="^$"/>
          <action type="Rewrite" url="/index.html"/>
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>