求IIS6 隐藏index.php的方法

2024-11-16 15:03:04
推荐回答(1个)
回答1:

thinkphp httpd.ini 伪静态规则
1 [ISAPI_Rewrite]
2 RewriteRule .*\.(?:gif|jpg|png|css|js|txt|jpeg|swf|flv) $0 [I,L]
3 RewriteRule /httpd(?:\.ini|\.parse\.errors) / [F,I,O]
4 RewriteCond %{REQUEST_FILENAME} !-f
5 RewriteCond %{REQUEST_FILENAME} !-d
6 RewriteRule ^(?!/index.php)(?!/admin.php)(.*)$ /index.php/$1 [L]

借鉴下 您伪静态规则没写好