Thinkphp伪静态规则iis7/iis8下载

Thinkphp伪静态规则iis7/iis8下载

thinkphp iis7伪静态
 

规则一:

  1. <?xml version=”1.0″ encoding=”UTF-8″?>
  2. <configuration>
  3. <system.webServer>
  4. <rewrite>
  5. <rules>
  6. <rule name=”OrgPage” stopProcessing=”true”>
  7. <match url=”^(.*)$” />
  8. <conditions logicalGrouping=”MatchAll”>
  9. <add input=”{HTTP_HOST}” pattern=”^(.*)$” />
  10. <add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true” />
  11. <add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true” />
  12. </conditions>
  13. <action type=”Rewrite” url=”index.php/{R:1}” />
  14. </rule>
  15. </rules>
  16. </rewrite>
  17. </system.webServer>
  18. </configuration>

 

规则二:

  1. <?xml version=”1.0″ encoding=”UTF-8″?>
  2. <configuration>
  3. <system.webServer>
  4. <rewrite>
  5. <rules>
  6. <rule name=”OrgPage” stopProcessing=”true”>
  7. <match url=”^(.*)$” />
  8. <conditions logicalGrouping=”MatchAll”>
  9. <add input=”{HTTP_HOST}” pattern=”^(.*)$” />
  10. <add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true” />
  11. <add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true” />
  12. </conditions>
  13. <action type=”Rewrite” url=”index.php/{R:1}” />
  14. </rule>
  15. </rules>
  16. </rewrite>
  17. <directoryBrowse enabled=”false” />
  18. <security>
  19. <requestFiltering allowDoubleEscaping=”True” />
  20. </security>
  21. </system.webServer>
  22. </configuration>
西数超哥学习乐园,西数超哥基础运维经验教程分享的学习乐园,西数超哥博客,运维经验教程交流学习分享的博客

原创文章,作者:zhang sir,如若转载,请注明出处:https://www.ysidc.top/7626.html