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.by codecowboy - Nginx Mailing List - English
If I want to transform links from http://exampledomain.com/sub-folder/some-article to http://subdomain.exampledomain.com/some-article where subdomain has the same name as the subfolder, do I need a rewrite or a redirect? I *think* I need a redirect but want to be sure I am doing it the recommended way. I tried "rewrite /sub-folder-name/(.*) $scheme://sub-folder-name.exampledomain.com/$1 peby codecowboy - Nginx Mailing List - English
If I want to transform links from http://exampledomain.com/sub-folder/some-article to http://subdomain.exampledomain.com/some-article where subdomain has the same name as the subfolder, do I need a rewrite or a redirect? I *think* I need a redirect but want to be sure I am doing it the recommended way. I tried rewrite /sub-folder-name/(.*) $scheme://sub-folder-name.exampledomain.com/$1 peby codecowboy - Migration from Other Servers