Nenhuma Descrição

web.config 1.2KB

1234567891011121314151617181920212223242526272829
  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>