西数超哥博客
运维经验教程分享的博客

Thinkphp伪静态规则iis7/iis8下载

Thinkphp伪静态规则iis7/iis8下载 IIS 第1张

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>
赞(0) 打赏
声明:本站发布的内容(图片、视频和文字)以原创、转载和分享网络内容为主,若涉及侵权请及时告知,将会在第一时间删除。本站原创内容未经允许不得转载:西数超哥 » Thinkphp伪静态规则iis7/iis8下载

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏