location / {
if (!-e $request_filename){
rewrite sitemap.xml /index.php?m=plugins&c=Pushall&a=sitemap last;
rewrite ^\/(\w*)\/([1-9]\d*)\.xml$ /index.php?m=plugins&c=Pushall&a=$1&id=$2 last;
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
rewrite ^/keywords/$ /index.php?m=plugins&c=keywords&a=index&keywords= last;
rewrite ^/keywords/([^/]*)\.html$ /index.php?m=plugins&c=keywords&a=index&keywords=$1 last;
rewrite ^\/keywords\/(.*)/([1-9]\d*).html$ /index.php?m=plugins&c=keywords&a=index&keywords=$1&page=$2 last;