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

iis6如何隐藏index.php

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

iis6如何隐藏index.php - 文章图片

推荐:《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]

以上就是iis6如何隐藏index.php的详细内容。

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