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.6KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <rewrite>
  5. <rules>
  6. <rule name="RedirectUserFriendlyURL1" stopProcessing="true">
  7. <match url="^index\.php$" />
  8. <conditions>
  9. <add input="{REQUEST_METHOD}" pattern="^POST$" negate="true" />
  10. <add input="{QUERY_STRING}" pattern="^author=([^=&amp;]+)$" />
  11. </conditions>
  12. <action type="Redirect" url="{C:1}" appendQueryString="false" />
  13. </rule>
  14. <rule name="RewriteUserFriendlyURL1" stopProcessing="true">
  15. <match url="^([^/]+)?$" />
  16. <conditions>
  17. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  18. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  19. </conditions>
  20. <action type="Rewrite" url="index.php?author={R:1}" />
  21. </rule>
  22. <rule name="RewriteUserFriendlyURL2" stopProcessing="true">
  23. <match url="^([^/]+)/([0-9^/]+){1,}?$" />
  24. <conditions>
  25. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  26. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  27. </conditions>
  28. <action type="Rewrite" url="view_post.php?post={R:2}" />
  29. </rule>
  30. </rules>
  31. </rewrite>
  32. </system.webServer>
  33. </configuration>