Home >Backend Development >PHP Problem >iis hide index.php

iis hide index.php

藏色散人
藏色散人Original
2020-11-26 09:58:242614browse

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

iis hide index.php

推荐:《PHP视频教程

本教程操作环境:Windows7系统、PHP5.6版,该方法适用于所有品牌电脑。

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>

  

更多编程相关知识,请访问:编程视频!!

The above is the detailed content of iis hide index.php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn