# nginx伪静态信息 # 将所有请求重定向到index.php location / { # 检查请求的文件或目录是否存在 if (!-e $request_filename) { # 保留查询字符串,重写所有请求到index.php rewrite ^/(.*)$ /index.php?$args last; } }