Hi everyone!<br><br>Recently we&#39;ve moved from lighttpd to nginx and I&#39;ve discovered a problem with the different rewrite handling in nginx.<br><br>The rule:<br><br>rewrite ^/download/([^/]+)/(.+)/$       /index.php/download/?hash=$1&amp;filename=$2        last;<br>
<br>works fine, but the $1 and $2 args in the result url are not url encoded and sometimes we have &quot;&amp;&quot; in the filenames which brakes the resulting query string by cutting the file name and adding another variable. Encoding &amp; as %26 in the source url doesn&#39;t help. Is there a way to enable url encoding of the args for the result url?<br>
<br>***<br>Alexander Radostin<br>