Advertisement
Sajgoniarz

Symfony 3 web.config

Mar 9th, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <defaultDocument>
  5. <files>
  6. <add value="app_dev.php" />
  7. </files>
  8. </defaultDocument>
  9. <rewrite>
  10. <rules>
  11. <clear />
  12. <rule name="StaticFiles" stopProcessing="true">
  13. <match url="^(.*)$" />
  14. <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
  15. <add input="{REQUEST_FILENAME}" matchType="IsFile"/>
  16. </conditions>
  17. <action type="Rewrite" url="{R:0}" logRewrittenUrl="true" />
  18. </rule>
  19. <rule name="Symfony 3" enabled="true" stopProcessing="true">
  20. <match url=".?" ignoreCase="false" />
  21. <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
  22. <action type="Rewrite" url="./app_dev.php" />
  23. </rule>
  24. </rules>
  25. </rewrite>
  26. </system.webServer>
  27. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement