On 2/28/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; What if I want to redirect when the referer is <a href="http://bob.com">bob.com</a> with args of 12345<br>&gt; and also redirect if referer is <a href="http://andy.com">
andy.com</a> with args of 987?&nbsp;&nbsp;I tried having<br>&gt; two location ~* things {} blocks ,but it is not processing both.<br><br>if ($http_referer ~ &quot;^.*bob\.com.*$&quot;) {<br>&nbsp;&nbsp;&nbsp;&nbsp;rewrite &quot;^.*12345.*$&quot; /disabled break;
<br>}<br><br>if ($http_referer ~ &quot;^.*andy\.com.*$&quot;) {<br>&nbsp;&nbsp;&nbsp;&nbsp;rewrite &quot;^.*987.*$&quot; /disabled break;<br>}</blockquote><div><br>&nbsp;</div>Unfortunately that&#39;s not working for me because the 12345 and 987 are query params on a flash .swf file and they&#39;re not showing up in the rewrite test for the url.&nbsp; Thanks for the suggestions so far though!
<br><br>Here is some of the debug notice output when trying to do the rewrites:<br>2007/02/28 11:11:28 [notice] 2989#0: *881 &quot;^.*andy\.com.*$&quot; matches &quot;<a href="http://andy.com/">http://andy.com/</a>&quot;, client: 
<a href="http://127.0.0.1">127.0.0.1</a>, server: localhost, URL: &quot;/thing.swf?thing_id=987&quot;, host: &quot;localhost&quot;, referrer: &quot;<a href="http://andy.com/">http://andy.com/</a>&quot;<br>2007/02/28 11:11:28 [notice] 2989#0: *881 &quot;^.*987.*$&quot; does not match &quot;/thing.swf&quot;, client: 
<a href="http://127.0.0.1">127.0.0.1</a>, server: localhost, URL: &quot;/thing.swf?event_id=987&quot;, host: &quot;localhost&quot;, referrer: &quot;<a href="http://andy.com/">http://andy.com/</a>&quot;<br><br></div>