• 技术文章 >后端开发 >PHP问题

    iis6如何隐藏index.php

    藏色散人藏色散人2020-08-26 10:27:38原创663

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

    推荐:《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的详细内容,更多请关注php中文网其它相关文章!

    声明:本文原创发布php中文网,转载请注明出处,感谢您的尊重!如有疑问,请联系admin@php.cn处理
    专题推荐:iis6 index.php
    上一篇:php如何将xml转为字符串 下一篇:php 不支持png怎么办
    大前端线上培训班

    相关文章推荐

    • 如何隐藏url中的index.php• php怎么隐藏入口文件• yii2如何隐藏index.php• linux如何隐藏index.php

    全部评论我要评论

  • 取消发布评论发送
  • 1/1

    PHP中文网