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 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <rewrite>
  5. <rules>
  6. <clear />
  7. <rule name="UserRepositories" enabled="true" stopProcessing="false">
  8. <match url="^/?u/([^/]+)/?(.*)$" />
  9. <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
  10. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  11. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  12. </conditions>
  13. <action type="Rewrite" url="index.php?user={R:1}" appendQueryString="false" />
  14. </rule>
  15. <rule name="Imported Rule 1" enabled="true" stopProcessing="true">
  16. <match url="^(.*)$" />
  17. <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
  18. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  19. <add input="{UNENCODED_URL}" pattern="^/?u/([^/]+)(.*)?$" negate="true" />
  20. </conditions>
  21. <action type="Rewrite" url="index.php" appendQueryString="false" />
  22. </rule>
  23. </rules>
  24. <outboundRules>
  25. <preConditions>
  26. <preCondition name="isUserSpecific">
  27. <add input="{REQUEST_URI}" pattern="^/u/([^/]+)(.*)$" />
  28. </preCondition>
  29. <preCondition name="isHTML">
  30. <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" ignoreCase="false" />
  31. </preCondition>
  32. </preConditions>
  33. </outboundRules>
  34. </rewrite>
  35. <httpErrors>
  36. <remove statusCode="404" subStatusCode="-1" />
  37. <error statusCode="404" prefixLanguageFilePath="" path="http://error.teknik.io/404" responseMode="Redirect" />
  38. </httpErrors>
  39. </system.webServer>
  40. </configuration>