团长 Windows主机 ISAPI_Rewrite 伪静态 httpd.ini 怎么写啊

  • 时间:
  • 浏览:3477
  • 来源:MIP建站系统交流平台

团长 Windows主机 ISAPI_Rewrite 伪静态 httpd.ini 怎么写啊

1个回答

详情请看:https://www.kancloud.cn/manual/thinkphp5/177576

如果你的服务器环境支持ISAPI_Rewrite的话,可以配置httpd.ini文件,添加下面的内容:

RewriteRule (.*)$ /index\.php\?s=$1 [I]

在IIS的高版本下面可以配置web.Config,在中间添加rewrite节点:

<rewrite>
 <rules>
 <rule name="OrgPage" stopProcessing="true">
 <match url="^(.*)$" />
 <conditions logicalGrouping="MatchAll">
 <add input="{HTTP_HOST}" pattern="^(.*)$" />
 <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
 <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
 </conditions>
 <action type="Rewrite" url="index.php/{R:1}" />
 </rule>
 </rules>
 </rewrite>

您尚未登录,暂无法回复!请先 登录/注册