1. 在iis安装 urlwrite

2. 安装php处理程序映射

3. 在项目中建立web.config, 键入以下内容:

<?xml version="1.0" encoding="UTF-8"?>  
<configuration>  
  <system.webServer>  
    <rewrite>  
      <rules>  
        <rule name="WPurls" enabled="true" stopProcessing="true">  
          <match url=".*" />  
          <conditions logicalGrouping="MatchAll">  
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />  
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />  
          </conditions>  
          <action type="Rewrite" url="index.php/{R:0}" />  
        </rule>  
      </rules>  
    </rewrite>  
  </system.webServer>  
</configuration>  

  

相关文章:

  • 2021-12-28
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
  • 2021-10-12
  • 2021-05-28
  • 2021-09-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2021-05-23
  • 2021-12-30
  • 2021-11-17
相关资源
相似解决方案