I have a site that operates in different geographical locations. Some example URLs for my site would be:
http://losangeles.example.com
http://sandiego.example.com/post/blog/travel/
http://sfbay.example.com/blog/read/12/
In these examples, my URL structure is translated to the following:
http://[location code].example.com/[controller]/[event]/[extra parameters]
The script strips off the subdomain and checks it against the db for an acceptable location match, and then the blogs etc. in that location are displayed.
This is all fine and great, but now I am making a Terms of Use page, and I'd like it to have the URL:
http://about.example.com/tou
/* which is translated to: */
http://[controller].example.com/[event]
So essentially, I'd like the subdomain to sometimes be a location code and sometimes a controller.
Any idea how I might do this? Or is this just stupid?