标签: nginx url-rewriting
我希望人员输入http://myweb.com/watch/fadfadf1会重定向到http://myweb.com/watch-1/fadfadf1 我想把“看”改为“看-1” 请帮我。非常感谢你
答案 0 :(得分:0)
rewrite ^/watch/fadfadf1$ http://myweb.com/watch-1/fadfadf1 permanent;