On 2/27/07, <b class="gmail_sendername">Roxis</b> <<a href="mailto:roxis@list.ru">roxis@list.ru</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wednesday 28 February 2007, Andy Triboletti wrote:<br>> location = /things {<br>> if ($http_referer ~* ".*bob.com.*" && $args ~* "12345") {<br>> rewrite ^/things$ /thing.disabled break;
<br>><br>> }<br><br>this should work:<br><br>if ($http_referer !~* ".*bob.com.*") {<br> break;<br>}<br><br>if ($args ~* "12345") {<br> rewrite ^/things$ /thing.disabled break;<br>}</blockquote>
<div><br>Thanks, that did work for that case.<br><br>What if I want to redirect when the referer is <a href="http://bob.com">bob.com</a> with args of 12345 and also redirect if referer is <a href="http://andy.com">andy.com
</a> with args of 987? I tried having two location ~* things {} blocks ,but it is not processing both.<br><br><br></div><br></div><br>