.htaccess
파일을 Azure 웹 사이트에서 인식 할 수 없습니다.
Azure 웹 사이트는 Microsoft IIS에서 실행됩니다.
IIS에는 Apache 용 mod_rewrite와 매우 유사한 URL 다시 쓰기 모듈이 있습니다. 사이트 루트 폴더에 web.config
파일을 포함하여 URL 다시 쓰기 규칙을 구성 할 수 있습니다.
Creating Rewrite Rules 문서를 읽고 "구성 파일에서 규칙보기"로 스크롤하여 모양을 확인하십시오. 정의
규칙은 web.config
에 다음과 같이 표시됩니다 (그리고 아마도 예상대로 작동합니다) :
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^test.html$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="test.php?{QUERY_STRING}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
나는 해결책을 발견, 나는, 그 것은 확장을 설치할 수 있습니다 생각의 Web.config – user1958350