要将这个页面
/about/show-1-1.html 做301跳转到 /about/topic-show-1-1.html
或者
/about/1.html 做301跳转到/about/
或者
/about/ 做301跳转到/about/1.html
nginx的伪静态规则就这样写:
rewrite ^/about/show-([0-9]+)-1.html$ /about/topic-show-$1-1.html permanent;
rewrite ^/about/1.html$ /about/ permanent;
rewrite ^/about/$ /about/ permanent;