location ^~ /weblog/ {
rewrite ^/weblog/(.*) /blog/$1 permanent;
}
location ~ ^/weblog/(.*) {
rewrite ^ /blog/$1 permanent;
}
You should use the first method.
Thanks so much, Igor - will do!
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,4895,4912#msg-4912