У меня возникла проблема после добавления правила перезаписи в IIS. Я использую PHP в качестве базового кода, но когда я публикую данные, сообщение не работает.
Это правило, которое я добавил:
<rule name="Hide .php ext">
<match url="^(.*)" ignoreCase="true" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_FILENAME}.php" matchType="IsFile" />
</conditions>
<action type="Rewrite" url="{R:0}.php" />
</rule>
<rule name="Redirecting .php ext" stopProcessing="true">
<match url="^(.*).php" />
<conditions logicalGrouping="MatchAny">
<add input="{URL}" pattern="(.*).php" />
</conditions>
<action type="Redirect" url="{R:1}" />
</rule>