Nginx

server {
    listen       80;
    server_name  app.dev;
    root   D:/newfm/;
    index index.php index.html;

    location / {
        try_files $uri $uri/ /index.php?r=$uri&$args;
    }

    location ~ .php$ {
       try_files $uri =404;
       include fastcgi.conf;
       fastcgi_pass 127.0.0.1:9000;
   }
}

try_files $uri $uri/ /index.php?r=$uri&$args;

规则中的?r= r是可配置的分隔符通过var_pathinfo=>'r'配置

results matching ""

    No results matching ""