On 1 Apr 2014 19:23, "skyice" wrote:
>
> Hello,
>
> With this rule :
>
> rewrite ^/([^/])(/.*) $2?locale=$1&$query_string last;
Your first capture is looking for exactly 1 character. Do you really mean
that?
J
___
nginx mailing list
nginx@nginx.org
htt
On Tue, Apr 01, 2014 at 02:23:27PM -0400, skyice wrote:
Hi there,
> 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
Does this rewrite regex matc
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