Permanent redirection with regex after moving blog

meto nginx-forum at nginx.us
Thu Aug 13 01:00:54 MSD 2009


location /weblog/ { rewrite ^/(.*)$ /blog/$1 permanent; }

That should work.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,4895,4896#msg-4896






More information about the nginx mailing list