About Nginx 301 Redirect

Hi, my old domain name link is: www.test.com/account/register, now, I want to redirect this to www.test.com/profile-add, anyone know how to do ? Thanks!

Another solution is: rewrite profile-add to /account/register, is it possible ?