web.config 1.0 KB

12345678910111213141516171819202122232425
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <handlers>
  5. <add name="PHP Module" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:\php\php-cgi.exe" resourceType="File" />
  6. </handlers>
  7. <defaultDocument>
  8. <files>
  9. <add value="index.php" />
  10. </files>
  11. </defaultDocument>
  12. <rewrite>
  13. <rules>
  14. <rule name="Laravel9" stopProcessing="true">
  15. <match url="^(.*)$" ignoreCase="false" />
  16. <conditions logicalGrouping="MatchAll">
  17. <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
  18. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
  19. </conditions>
  20. <action type="Rewrite" url="index.php/{R:1}" appendQueryString="true" />
  21. </rule>
  22. </rules>
  23. </rewrite>
  24. </system.webServer>
  25. </configuration>