Is there a way to use 2 if statements together either nested or in one line in the nginx config?&nbsp; Here is what I want to do<br><br>For a given location /things I want to check if a query parameter has a certain value, and I also want to check the referer and if both match then do a redirect
<br><br>I tried doing this and a few other things but couldn&#39;t figure out how to chain multiple if statements together.<br>location = /things {<br>&nbsp;&nbsp;&nbsp; if ($http_referer ~* &quot;.*bob.com.*&quot; &amp;&amp; $args ~* &quot;12345&quot;)&nbsp;&nbsp;&nbsp; {
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rewrite ^/things$ /thing.disabled break;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; }<br><br><br>So if someone coming from <a href="http://bob.com">bob.com</a> requests things?thing_id=12345 I want to send them to a disabled page.&nbsp; I tried checking for the query parameters in the location definition block but it didn&#39;t have the parameters.
<br>