1、打开链接:

http://www.microsoft.com/zh-cn/download/confirmation.aspx?id=7435

2、保存文件:

 rewrite_x64_zh-CN.msi

IIS环境下隐藏index.php

3、安装

4、重新打开IIS服务器管理器 或者 刷新要操作的网站

5、管理区多了“URL重写”选项:

IIS环境下隐藏index.php

6、打开“URL重写”,点击右侧栏“导入规则”:

IIS环境下隐藏index.php

7、填入 重写规则 ,然后点击右侧“应用”提交:

<IfModule mod_rewrite.c>    
RewriteEngine on    
RewriteCond %{REQUEST_FILENAME} !-d    
RewriteCond %{REQUEST_FILENAME} !-f    
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]    
</IfModule>

IIS环境下隐藏index.php

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-24
  • 2021-09-08
  • 2021-06-18
相关资源
相似解决方案