Redirecting existing links to a sub-folder to a new subdomain

codecowboy nginx-forum at nginx.us
Sun Feb 22 18:27:17 UTC 2015


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.

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



More information about the nginx mailing list