On 2/27/07, <b class="gmail_sendername">Roxis</b> &lt;<a href="mailto:roxis@list.ru">roxis@list.ru</a>&gt; 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>&gt; location = /things {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; if ($http_referer ~* &quot;.*bob.com.*&quot; &amp;&amp; $args ~* &quot;12345&quot;)&nbsp;&nbsp;&nbsp;&nbsp;{<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rewrite ^/things$ /thing.disabled break;
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>this should work:<br><br>if ($http_referer !~* &quot;.*bob.com.*&quot;) {<br>&nbsp;&nbsp;&nbsp;&nbsp;break;<br>}<br><br>if ($args ~* &quot;12345&quot;) {<br>&nbsp;&nbsp;&nbsp;&nbsp;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?&nbsp; I tried having two location ~* things {} blocks ,but it is not processing both.<br><br><br></div><br></div><br>