Welcome! Log In Create A New Profile

Advanced

Re: Rewrite rules from Apache again

Luciano Mannucci
June 12, 2014 09:26AM
On Wed, 11 Jun 2014 18:05:50 +0100
Francis Daly <francis@daoine.org> wrote:

On Wed, 11 Jun 2014 18:05:50 +0100
Francis Daly <francis@daoine.org> wrote:

> The rewrite that you want doesn't happen, because the request
> /en/privacy.php is handled in:
>
> > location ~ \.php$ {
> > location / {
> > location ^~ /en/ {
> > location = /en/pagina.php {
> > location ~ \.php$ {
>
> ...that location, and not in the one two above it.
>
> Good luck with it,

Solved!

Moving all the rewrite rules outside the "location" to the "server"
section makes them work as expected. The regexp takes care of the
different rewritings to be done.

Maaany thanks again,

Luciano.
--
/"\ /Via A. Salaino, 7 - 20144 Milano (Italy)
\ / ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250
X AGAINST HTML MAIL / E-MAIL: posthamster@sublink.sublink.ORG
/ \ AND POSTINGS / WWW: http://www.lesassaie.IT/

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

Rewrite rules from Apache again

Luciano Mannucci June 10, 2014 12:02PM

Re: Rewrite rules from Apache again

Francis Daly June 10, 2014 05:44PM

Re: Rewrite rules from Apache again

Luciano Mannucci June 11, 2014 12:22PM

Re: Rewrite rules from Apache again

Francis Daly June 11, 2014 01:06PM

Re: Rewrite rules from Apache again

Luciano Mannucci June 12, 2014 09:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 166
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