ngw*_*ngw 4 rewrite nginx
我需要知道我的 url 是否包含一个小的 substr,保持 url 原样并只重写那一小部分,我该如何完成?
例如:
http://foobar.com/foo-bar-substrtocatch-baz
应该成为
http://foobar.com/foo-bar-changedsubstr-baz
提前致谢...
cns*_*nst 7
rewrite ^(.*)substrtocatch(.*)$ $1changedsubstr$2;
归档时间:
13 年,4 月 前
查看次数:
16265 次
最近记录: