时间:2021-07-01 10:21:17 帮助过:18人阅读
如何将动态页面转成伪静态
rewrite
举例webserver为nginx
eg:
//规则
rewrite ^(.*)/index-([0-9]+)-([0-9]+).html$ $1/index.php?testid=$2&page=$3 last;
则效果如下
http://xxx.com/test/index-1-1.html
//则rewrite后真正访问的是
http://xxx.com/test/index.php?testid=1&page=1