Welcome! Log In Create A New Profile

Advanced

Re: 404 error with rewriting rule

Francis Daly
April 01, 2014 05:32PM
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 match this request?

What does the debug log say?

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

404 error with rewriting rule

skyice April 01, 2014 02:23PM

Re: 404 error with rewriting rule

Francis Daly April 01, 2014 05:32PM

Re: 404 error with rewriting rule

Jonathan Matthews April 02, 2014 05:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 229
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready