当前位置:Gxlcms > PHP教程 > iis 如何隐藏index.php

iis 如何隐藏index.php

时间:2021-07-01 10:21:17 帮助过:55人阅读

iis隐藏index.php的方法:首先安装微软的URL Rewrite模块;然后点击url重写模块,并点击“导入规则”;最后填入重写规则,并点击“应用”即可。

推荐:《PHP视频教程》

iis隐藏index.php

1.先安装微软的URL Rewrite模块 网址是https://www.iis.net/downloads/microsoft/url-rewrite#additionalDownloads

安装完成后iis会出现url重写模块

2.点击进去点击点击导入规则

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


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

  

以上就是iis 如何隐藏index.php的详细内容,更多请关注gxlcms其它相关文章!

人气教程排行