<div dir="ltr">For <a href="http://www.mywebsite.com/image.php%3Fid%3D12345" target="_blank" style="font-size:12.8000001907349px">http://www.mywebsite.com/image.php%3Fid%3D12345</a>, the uri is "/image.php?id=12345" after decoded, <div>so nginx may try to find file with name "image.php?id=12345" based on your config file. That's why you got 404.<br></div><div>For <a href="http://www.mywebsite.com/image.php?id=12345" target="_blank" style="font-size:12.8000001907349px">http://www.mywebsite.com/image.php?id=12345</a>, the uri is "/image.php" and argument is "id=12345".</div><div><br></div><div>If you want a uri with argument, the '?' should not be encoded, check <a href="https://tools.ietf.org/html/rfc3986#section-3">this</a></div><div><pre class="" style="font-size:1em;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">URI         = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
</pre></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 24, 2015 at 1:56 AM, pierob83 <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone,<br>
            I've nginx 1.2.5 and I've an issue about encoded URLs.<br>
Is there a way to make nginx accepts URL like the following:<br>
<br>
<br>
<a href="http://www.mywebsite.com/image.php%3Fid%3D12345" target="_blank">http://www.mywebsite.com/image.php%3Fid%3D12345</a><br>
<br>
as equivalent of the following?<br>
<br>
<a href="http://www.mywebsite.com/image.php?id=12345" target="_blank">http://www.mywebsite.com/image.php?id=12345</a><br>
<br>
<br>
<br>
In my current configuration, the first URL is 404 not found, and the second<br>
one works.<br>
<br>
Many thanks<br>
<br>
PB<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,259076,259076#msg-259076" target="_blank">http://forum.nginx.org/read.php?2,259076,259076#msg-259076</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div>