tearszhu 发表于 2012-10-1 14:22:30

nginx rewrite 求助

想进行一个rewrite重写,求达人帮助

想把这个URL
http://www.XXX.com/index.php?m=yp&c=index&a=show&catid=378&id=201
重写成
http://s.XXX.com/378/page-201.html

如果单是后面的重写比较简单,
rewrite ^/(+)/page-(+).html /index.php?m=yp&c=index&a=show&catid=$1&id=$2 last;
即可
但是加上域名应该怎么写?

licess 发表于 2012-10-2 12:25:45

不会写伪静态
页: [1]
查看完整版本: nginx rewrite 求助