Legacy Urls Rails with multiple subdomains
With nginx it's easy as ABC:
server { listen 80; server_name ~^www\.(?<category>my_category)\.my_site\.com$; return 301 http://www.my_site.com/articles/$category$request_uri;}
With nginx it's easy as ABC:
server { listen 80; server_name ~^www\.(?<category>my_category)\.my_site\.com$; return 301 http://www.my_site.com/articles/$category$request_uri;}