各位大神,请教个小问题 Nginx 301 规则问题!先谢了!
http://m。123。com/index.php?&a=show&catid=7&id=3009 url为动态 php
http://m。123。om/7/3009.html 静态url
需要把动态url nginx 301到 静态url
rewrite ^/index.php?m=content&c=index&a=show&catid=([0-9])&id=([0-9]) /$1/$2.html permanent;
rewrite ^/index.php?m=content&c=index&a=show&catid=([0-9])&id=([0-9])&page=([0-9]) /$1/$2_$3.html permanent;
301不成功!
求解答!