Another rewrite question

devin nginx-forum at
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 / {
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:,1026,1044#msg-1044

More information about the nginx mailing list