linux tp5隐藏index.php

 

Nginx(在Nginx.conf中添加):

    location / {
        root   /web/tool;
        index  index.php index.html index.htm;
        try_files $uri $uri/ /index.php?$query_string;
        if ( !-e $request_filename) {
            rewrite ^(.*)$ /index.php/$1 last;
            break;
        }
        autoindex on;
    }

 

posted @ 2020-03-30 14:36  zhang_you_wu  阅读(432)  评论(0编辑  收藏  举报