nginx, vbseo

[cc]

location /forums/ {
rewrite ^/forums/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /forums/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;
if ($request_filename ~ "\.php$" ) {
rewrite ^(.*)$ /forums/vbseo.php last;
}
if (!-e $request_filename) {
rewrite ^/forums/(.*)$ /forums/vbseo.php last;
}
}

[/cc]

Оставить комментарий