Mod_rewrite, DNS, and controllers

Is it possible to have http://chicago.{site}/{controller} be the same
thing as http://www.{site}.com/{controller}/us/il/chicago?
How would I do this?
I hope this question isnt too open-ended

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs