On some occasions, I've seen Drupal able to detect things like language and rewrite the url accordingly, so your actual displayed url reflects the detected value (like from http://www.mysite.com/foo/bar to http://www.mysite.com/en/foo/bar)
I want to do that based on the $theme_key. I want all the data, when displayed in the 'fancytheme' theme, rewritten from http://www.mysite.com/foo/bar to http://fancytheme.mysite.com/foo/bar
- is that possible ?
- how would i go about ?
- is there a module out there that already does that ?