Hi,
Thanks for your reply. I got this working. Here's what I ended up with in case it helps someone else:
"rewrite /student-area/(.*) $scheme://studentarea.mydomainname.com/$1 permanent;"
This was placed outside of any location {} blocks but within the server {} block.