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

devin nginx-forum at nginx.us
Tue Apr 14 09:16:23 MSD 2009


I already tried this one.

I'm using quotes due to the brackets {}, if I don't use them, nginx fails to read the config, as {} are used by nginx config.

I have:

location / {
some-non-rewrite-rules-only-basic-config-rules
if (!-e $request_filename) {
go to index.php 
}
rewrite ^/()/?$ /index.php?country=$1 break;
}

And it still doenst works.

Thnx for your help.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,1026,1044#msg-1044






More information about the nginx mailing list