Ana içeriğe atla

Angular For IIS



<?xml version=”1.0" encoding=”UTF-8"?>


<configuration>


<system.webServer>


        <httpErrors>

            <remove statusCode="404" subStatusCode="-1" />

            <error statusCode="404" prefixLanguageFilePath="" path="/index.html" responseMode="ExecuteURL" />

        </httpErrors>



<rewrite>


<rules>


<rule name=”Angular Routes” 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>

Yorumlar

Bu blogdaki popüler yayınlar