RT
在vhost里include phurl.conf
在这里/usr/local/nginx/conf新建phurl.conf
加入以下内容

然后重启lnmp即可- rewrite ^/([a-zA-Z0-9_-]+)$ /redirect.php?alias=$1 last;复制代码