123456789101112131415161718192021222324252627282930313233 |
- <?xml version="1.0" encoding="UTF-8"?>
- <configuration>
- <system.webServer>
- <rewrite>
- <outboundRules>
- <preConditions>
- <preCondition name="ResponseIsHtml1">
- <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
- </preCondition>
- </preConditions>
- </outboundRules>
- <rules>
- <rule name="RewriteUserFriendlyURL1" stopProcessing="true">
- <match url="^([^/]+)?$" />
- <conditions>
- <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
- <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
- </conditions>
- <action type="Rewrite" url="index.php?error={R:1}" />
- </rule>
- </rules>
- </rewrite>
- <httpErrors>
- <remove statusCode="404" subStatusCode="-1" />
- <error statusCode="404" prefixLanguageFilePath="" path="http://error.teknik.io/404" responseMode="Redirect" />
- </httpErrors>
- <defaultDocument>
- <files>
- <add value="404.php" />
- </files>
- </defaultDocument>
- </system.webServer>
- </configuration>
|