lanxi256 发表于 2018-12-8 08:02:14

ThinkPHP5隐藏index.php在Win7或者Win2008R2下IIS设置

  PHP环境是IIS+PHP5.6版本 隐藏index.php
  1、站点下选择URL重写
http://s1.运维网.com/images/20171130/1512036754268982.jpg
  2、添加规则-入站规则-空白规则
  

  http://s1.运维网.com/images/20171130/1512036779431829.jpg
  http://s1.运维网.com/images/20171130/1512036785914968.jpg
  3、编辑入站规则
  名称:自定义
  模式:^(.*)$
  

http://s1.运维网.com/images/20171130/1512036816360063.jpg
  4、条件选择不是文件;不是目录
  

http://s1.运维网.com/images/20171130/1512036825239974.jpg
  5、操作属性 重写URL:index.php/{R:1}
  

http://s1.运维网.com/images/20171130/1512036833653678.jpg



页: [1]
查看完整版本: ThinkPHP5隐藏index.php在Win7或者Win2008R2下IIS设置