initial commit
This commit is contained in:
27
web.config
Normal file
27
web.config
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user