Hi, I'm trying to put one url inside another url with a rewrite rule, but I want to make sure the embedded url is url encoded.  Is there a way to do this with nginx?  I think mod_rewrite does this automatically, but I'm not sure.
<br><br><br>rewrite ^(.*)$ /the_real_file?referer=$http_referer redirect;<br><br>This makes urls like<br>/the_real_file?referer=<a href="http://www.gmail.com?foo=bar">http://www.gmail.com?foo=bar</a><br><br>I want the urls to look like:
<br>/the_real_file?referer=http%3A%2F%2Fwww.gmail.com%3Ffoo%3Dbar<br><br><br>I can&#39;t get the the referer out of the header cause it&#39;s a flash movie, so I&#39;m trying to do this trick with appending the referer onto the&nbsp; request as a query param.
<br><br>Thanks,<br>Andy<br>