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.

23 lines
914 B

  1. <configuration>
  2. <system.webServer>
  3. <rewrite>
  4. <rules>
  5. <rule name="Imported Rule 1" stopProcessing="true">
  6. <match url="^(.*)/$" ignoreCase="false" />
  7. <conditions>
  8. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
  9. </conditions>
  10. <action type="Redirect" redirectType="Permanent" url="/{R:1}" />
  11. </rule>
  12. <rule name="Imported Rule 2" stopProcessing="true">
  13. <match url="^" ignoreCase="false" />
  14. <conditions>
  15. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
  16. <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
  17. </conditions>
  18. <action type="Rewrite" url="index.php" />
  19. </rule>
  20. </rules>
  21. </rewrite>
  22. </system.webServer>
  23. </configuration>