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