Redirect all pages in one folder to another folder (redirect folder)

location ~ ^/images/(.*) {
return 301 /assets/$1;
}