How to hide index.php in iis6

藏色散人
Release: 2023-03-05 08:56:02
Original
2427 people have browsed it

iis6隐藏“index.php”的方法:首先打开“httpd.ini”文件;然后设置伪静态规则为“RewriteRule ^(?!/index.php)(?!/admin.php)(.*)$ /index.php/$1 [L]”即可。

How to hide index.php in iis6

推荐:《PHP视频教程

IIS6 隐藏index.php的方法

thinkphp httpd.ini 伪静态规则

[ISAPI_Rewrite]
 RewriteRule .*\.(?:gif|jpg|png|css|js|txt|jpeg|swf|flv) $0 [I,L]
 RewriteRule /httpd(?:\.ini|\.parse\.errors) / [F,I,O]
 RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(?!/index.php)(?!/admin.php)(.*)$ /index.php/$1 [L]
Copy after login

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template