I&#39;m sorry I am new to nginx but what does value $args hold and where does the value come from?<br><br><div class="gmail_quote">On Mon, Feb 16, 2009 at 1:50 AM, Igor Sysoev <span dir="ltr">&lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">On Sun, Feb 15, 2009 at 01:52:19PM -0700, Paul Greenwood wrote:<br>

<br>
&gt; How would you use regx in nginx for this:<br>
&gt;<br>
&gt; RewriteCond %{QUERY_STRING} ^$ [OR] %{REQUEST_URI} ^/Special:Search<br>
&gt; RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA,NE]<br>
&gt;<br>
&gt; I&#39;m not sure to how to do this?<br>
<br>
</div></div> &nbsp; location / {<br>
 &nbsp; &nbsp; &nbsp; if ($args = &quot;&quot;) {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rewrite &nbsp;^ &nbsp;/index.php?title=$request_uri? &nbsp; last;<br>
 &nbsp; &nbsp; &nbsp; }<br>
 &nbsp; }<br>
<br>
 &nbsp; location /Special:Search {<br>
 &nbsp; &nbsp; &nbsp; rewrite &nbsp;^ &nbsp;/index.php?title=$request_uri?;<br>
 &nbsp; }<br>
<font color="#888888"><br>
<br>
--<br>
Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</font></blockquote></div><br>