On Wednesday 28 February 2007, Andy Triboletti wrote: > location = /things { > if ($http_referer ~* ".*bob.com.*" && $args ~* "12345") { > rewrite ^/things$ /thing.disabled break; > > } this should work: if ($http_referer !~* ".*bob.com.*") { break; } if ($args ~* "12345") { rewrite ^/things$ /thing.disabled break; }