fix for ssl redirects
added ability to set the language value based on the domain