Nginx 伪静态
location / { if (!-e $request_filename) { rewrite ^/(.*\.(js|ico|gif|jpg|png|css|bmp|html|xls)$) /$1 last; rewrite ^/(\?\?.*\.(js|css).*$) /$1 last; #rewrite url "www.a.com/1.php" TO "www.a.com/1" rewrite ^/(.*) /$1.php last; #rewrite "^/?code=(.*)$" /index.php?user/weibocallback?code=$1 break; } }