Welcome! Log In Create A New Profile

Advanced

Re: Another rewrite question http://www.domain.com/co/

April 14, 2009 02:59AM
As usual, my fault ;)

The problem was the "rule order".


if (!-e $request_filename) {
rewrite ^(.*)$ /index.php last;
break;
}

rewrite "^/([a-z]{2})/?$" /index.php?country=$1 last;

The first rule stopped the second one from working.
Subject Author Posted

Another rewrite question http://www.domain.com/co/

devin April 13, 2009 04:08PM

Re: Another rewrite question http://www.domain.com/co/

Kiril Angov April 13, 2009 06:19PM

Re: Another rewrite question http://www.domain.com/co/

Kiril Angov April 13, 2009 06:24PM

Re: Another rewrite question http://www.domain.com/co/

devin April 14, 2009 01:16AM

Re: Another rewrite question http://www.domain.com/co/

devin April 14, 2009 02:59AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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