IIS 伪静态 PHP

197次阅读
没有评论

共计 573 个字符,预计需要花费 2 分钟才能阅读完成。

 <rules>
  <rule name="root_location_rewrite" stopProcessing="true">
      <match ignoreCase="false" url="^(.*)$"/>
      <conditions logicalGrouping="MatchAll">
          <add ignoreCase="false" input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
          <add ignoreCase="false" input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
      </conditions>
      <action appendQueryString="true" type="Rewrite" url="index.php/{R:1}"/>
  </rule>
  <rule name="default_file_rewrite" stopProcessing="true">
      <match ignoreCase="false" url="^$"/>
      <action appendQueryString="true" type="Rewrite" url="index.php?{QUERY_STRING}"/>
  </rule>
</rules>

正文完
 0
flames
版权声明:本站原创文章,由 flames 于2022-10-26发表,共计573字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)