web.config 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. This file provides out-of-the-box support for Microsoft IIS 7 or higher.
  4. If you are using another webserver you can safely remove it. Do note that
  5. the Rewrite Module (http://www.iis.net/download/urlrewrite) is not (always)
  6. installed by default, but required for the proper working of the rules
  7. defined in the <rewrite> section of <system.webServer>.
  8. -->
  9. <configuration>
  10. <system.webServer>
  11. <rewrite>
  12. <rules>
  13. <clear />
  14. <rule name="Set Webroot">
  15. <match url="(.*)" />
  16. <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
  17. </conditions>
  18. <action type="Rewrite" url="app/webroot/{R:1}" />
  19. </rule>
  20. <rule name="Lithium Redirect">
  21. <match url="app/webroot/(.*)" />
  22. <conditions>
  23. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  24. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  25. <add input="{REQUEST_FILENAME}" pattern="favicon.ico$" negate="true" />
  26. </conditions>
  27. <action type="Rewrite" url="app/webroot/index.php?url={R:1}" />
  28. </rule>
  29. </rules>
  30. <rewriteMaps>
  31. <rewriteMap name="Rewrite To Webroot from Root" />
  32. </rewriteMaps>
  33. </rewrite>
  34. </system.webServer>
  35. </configuration>