[#802 state:needs_tests]  make the subdomain case insensitive in the url