Rewrite rules from Apache again
Luciano Mannucci
luciano at vespaperitivo.it
Thu Jun 12 13:24:45 UTC 2014
On Wed, 11 Jun 2014 18:05:50 +0100
Francis Daly <francis at daoine.org> wrote:
On Wed, 11 Jun 2014 18:05:50 +0100
Francis Daly <francis at 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 at sublink.sublink.ORG
/ \ AND POSTINGS / WWW: http://www.lesassaie.IT/
More information about the nginx
mailing list