location / {
location ~ [^/]\.ph(p\d*|tml)$ {
try_files /does_not_exists @php;
}
rewrite ^/js/(.*) /compress/js.php?load=$1 last;
rewrite ^/css/(.*) /compress/css.php?load=$1 last;
if ($uri ~ "(/|.htm|.php|.html|/[^.]*)$"){set $rule_2 1$rule_2;}
if (!-f $request_filename){set $rule_2 2$rule_2;}
if (!-d $request_filename){set $rule_2 3$rule_2;}
if ($rule_2 = "321"){rewrite /(.*) /index.php last;}
}
location /css {
try_files $uri $uri/css /compress/css.php?load=$args;
}
location /css {
try_files $uri $uri/ /compress/css.php?load=$args;
}
location /css {
try_files $uri $uri/css /compress/css.php?$args;
}