28 lines
1.2 KiB
XML
28 lines
1.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<configuration>
|
|
<system.webServer>
|
|
<httpErrors errorMode="Detailed" />
|
|
<rewrite>
|
|
<rules>
|
|
<rule name="Rewrite to PHP" stopProcessing="true">
|
|
<match url="^(.*)$" />
|
|
<conditions logicalGrouping="MatchAll">
|
|
<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:1}.php" />
|
|
</rule>
|
|
|
|
<rule name="Redirect Extensionless" stopProcessing="true">
|
|
<match url="^(.*)\.php$" />
|
|
<conditions logicalGrouping="MatchAll">
|
|
<add input="{REQUEST_METHOD}" pattern="^GET$" />
|
|
</conditions>
|
|
<action type="Redirect" url="{R:1}" redirectType="Found" />
|
|
</rule>
|
|
</rules>
|
|
</rewrite>
|
|
</system.webServer>
|
|
</configuration>
|