1
어떻게 루트 URL을 일치시키고 index.html로 리디렉션 할 수 있습니까? 나는 시도했다 :Azure App Service Web.config에서 URL을 재 작성하여 루트를 index.html로 리디렉션
<rule name="SPA">
<match url="^$" />
<action type="Rewrite" url="index.html" />
</rule>
과 푸른 앱 서비스에서
<rule name="SPA">
<match url="" />
<action type="Rewrite" url="index.html" />
</rule>
. 그러나 그들은 작동하지 않았다. 내가 가지고 :
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="SPA">
<match url="^$" />
<action type="Rewrite" url="index.html" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
내가뿐만 아니라 리디렉션을 시도 :
이/
내의 Web.config 얻을 수 없습니다. 그러나 운이 없다.
<rule name="Redirect to canonical url">
<match url="^$" >
<conditions>
<!-- Check whether the requested domain is in canonical form -->
<add input="{HTTP_HOST}" type="Pattern" pattern="^purchasehelper.azurewebsites.net$">
</conditions>
<!-- Redirect to canonical url and convert URL path to lowercase -->
<action type="Redirect" url="http://purchasehelper.azurewebsites.net/index.html" RedirectType="Found"/>
</rule>