想做一个重写
仅当地址是http://www.xxxx.com/bbs/时,重写到http://www.xxx.com/bbs/welcom...
如果是http://www.xxxx.com/bbs/index...或其他/bbs/下的链接都不重写,照旧走路由
location /bbs/ {
if ( $uri = '/bbs/' ) {
rewrite ^(.*) http://www.xxx.com/bbs/welcome.html $last
}
}
目前这样写的,但对http://www.xxx.com/bbs/?a=d之类的就跟着重写了,能否仅仅只有url是规则里的时候才重写????