match and redirect "http://" (double slash) from URI path with nginx
<p>I want nginx return '<a href="http://example.com" rel="nofollow">http://example.com</a>'  with request url '<a href="http://mydomain/url=http://example.com" rel="nofollow">http://mydomain/url=http://example.com</a>' use conf blow, but it give me 'http:/xxx.com'.</p>

<p>what's wrong, can someone give some help! thanks.</p>

<p>this is my nginx conf</p>

<pre><code>location ~ url=(.*)$ {
    return 301 $1;
}
</code></pre>