zzp1234 发表于 2016-11-1 09:31:03

nginx伪静态设置不对

网站的链接apache伪静态是RewriteRule ^(.*).html$ /index\.php\?p=$1   效果http://www.xxx.com/981279837912ug12gw1g.html
在apache下生效。
但是换成nginx后保存不生效了,重启也不行,帮看下规则对不

location / {
rewrite ^/(.*).html$ /index.php?p=$1 last;
}


河妖 发表于 2016-11-1 11:16:58

伪静态规则不对
请参考nginx url重写规则手册
页: [1]
查看完整版本: nginx伪静态设置不对