当前位置:首页 > 服务器技术 > IIS

iis隐藏index.php

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

iis隐藏index.php - 文章图片

推荐:《PHP视频教程》

  • 该方法适用于所有品牌电脑。

iis隐藏index.php方法:

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

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

iis隐藏index.php - 文章图片

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

iis隐藏index.php - 文章图片

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的详细内容。

本文系统来源:https://www.php.cn/php-ask-464780.html
【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!