nginx 配置 pathinfo

支持path_info

try_files $uri $uri/ @rewrite;

location @rewrite {
    rewrite ^/(.*)$ /index.php/$1;
}

不支持path_info

if (!-e $request_filename) {
    rewrite  ^/(.*)$  /index.php?s=$1  last;
    break;
}

你可能感兴趣的:(nginx 配置 pathinfo)