404 error with rewriting rule

skyice nginx-forum at nginx.us
Tue Apr 1 18:23:27 UTC 2014


Hello,

With this rule : 

rewrite ^/([^/])(/.*) $2?locale=$1&$query_string last;

I get a 404 error when I try go on http://example.org/en/test.php instead of
http://example.org/test.php?locale=en

Anyone have any idea to solve the problem ?

Thanks.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248905,248905#msg-248905



More information about the nginx mailing list