Help with routes needed...
I'm trying to create a site and I want to forward to various "sub" sites based on a parameter in the URL instead of just using modules, as pretty much all the code (with the exception of some front end styles) will remain the same for the sites (only data/content will change).
Maybe an example will be easier to understand what I'm trying to do:
Conditions:
1) domain.com/ should point to Index controller / Index action
2) domain.com/site/ should point to Index controller / "site" should be passed as name param
3) domain.com/site/page should point to Page controller / "site" should be passed as name param
So basically instead of being in domain.com/controller/action/param format I need it in domain.com/param/controller/action... I basically want the same set of controllers to handle all the various sites and just spit out the different data from the db based on the site name...
Possible?
- Aaron
|