Teknik is a suite of services with attractive and functional interfaces. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

web.config 1.3KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <rewrite>
  5. <outboundRules>
  6. <preConditions>
  7. <preCondition name="ResponseIsHtml1">
  8. <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
  9. </preCondition>
  10. </preConditions>
  11. </outboundRules>
  12. <rules>
  13. <rule name="RewriteUserFriendlyURL1" stopProcessing="true">
  14. <match url="^([^/]+)?$" />
  15. <conditions>
  16. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  17. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  18. </conditions>
  19. <action type="Rewrite" url="index.php?error={R:1}" />
  20. </rule>
  21. </rules>
  22. </rewrite>
  23. <httpErrors>
  24. <remove statusCode="404" subStatusCode="-1" />
  25. <error statusCode="404" prefixLanguageFilePath="" path="http://error.teknik.io/404" responseMode="Redirect" />
  26. </httpErrors>
  27. <defaultDocument>
  28. <files>
  29. <add value="404.php" />
  30. </files>
  31. </defaultDocument>
  32. </system.webServer>
  33. </configuration>