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;
    }

猜你喜欢

转载自www.cnblogs.com/zhangyouwu/p/12598482.html
今日推荐