iis 怎样隐藏index.php

2023-05-12,,

小编给大家分享一下iis 怎样隐藏index.php,希望大家阅读完这篇文章后大所收获,下面让我们一起去探讨吧!

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

iis隐藏index.php

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

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

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

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

<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有了一定的了解,想了解更多相关知识,欢迎关注本站行业资讯频道,感谢各位的阅读!

《iis 怎样隐藏index.php.doc》

下载本文的Word格式文档,以方便收藏与打印。