Problem trying to rewrite a URL

António P. P. Almeida appa at perusio.net
Wed Jan 8 08:11:43 UTC 2014


AFAIK nginx has no directive for unescaping URLs. You could do it with Lua
or go down a messy path of map directives listing all arguments with
permutations.

Rather what you need to do is fix your application so that it accepts
escaped URLs. They're standard and there's no reason why it shouldn't IMO.
Le 6 janv. 2014 05:55, "hoidulich" <nginx-forum at nginx.us> a écrit :

> Hi all,
>
>  I have a problem trying to rewrite a URL.
>
>  It should be pretty straightforward but it has been taking me hours
>  searching.
>
>  Google indexed urls containing ";", which gets escaped to %3b:
>
> http://hoidulich.com/index.php?action=tagged%3bid=254715%3btag=vietholiday
>  (the original url that works is
>  http://hoidulich.com/index.php?action=tagged;id=254715;tag=vietholiday)
>
> How can I fix it?
> Thank you very much.
> Cao Tri.
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,246052,246052#msg-246052
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140108/0fbfee0d/attachment-0001.html>


More information about the nginx mailing list