因为每次创建总是去找伪静态。现在写个博客记录,以后的时候比较方便
ThinkPHP 的伪静态
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
Laravel5的伪静态
location / {
try_files $uri $uri/ /index.php$is_args$query_string;
}