Repo for the search and displace core module including the interface to select files and search and displace operations to run on them. https://searchanddisplace.com
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.

28 lines
1.2 KiB

4 years ago
  1. <!--
  2. Rewrites requires Microsoft URL Rewrite Module for IIS
  3. Download: https://www.microsoft.com/en-us/download/details.aspx?id=47337
  4. Debug Help: https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/using-failed-request-tracing-to-trace-rewrite-rules
  5. -->
  6. <configuration>
  7. <system.webServer>
  8. <rewrite>
  9. <rules>
  10. <rule name="Imported Rule 1" stopProcessing="true">
  11. <match url="^(.*)/$" ignoreCase="false" />
  12. <conditions>
  13. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
  14. </conditions>
  15. <action type="Redirect" redirectType="Permanent" url="/{R:1}" />
  16. </rule>
  17. <rule name="Imported Rule 2" stopProcessing="true">
  18. <match url="^" ignoreCase="false" />
  19. <conditions>
  20. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
  21. <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
  22. </conditions>
  23. <action type="Rewrite" url="index.php" />
  24. </rule>
  25. </rules>
  26. </rewrite>
  27. </system.webServer>
  28. </configuration>