Domain/:lang - feasible?

Hi, I’d like to set the main page (index) as the following domain/:lang, where the lang should be updated dynamically(based on cookie). So questions:

  1. is it feasible and makes sense?
  2. how to avoid displaying page at /:lang/ that seems it is not properly css formatted?