tags:

views:

1301

answers:

1

Scenario: A news site with article tagged in categories.

My Controller is called "Category" and this URL : http://mysite.com/Category/Sport passes "Sport" to action "Index" in controller "Category"

What I want to do is allow URLs like :
http://mysite.com/Sport/Hockey
http://mysite.com/Sport/Football
http://mysite.com/Science/Evolution

Which passes all category info to action "Index" in controller "Category".

Basically I need to create a catch-all route that handles nearly all site requests.

Thanks in advance.

Wayne

+1  A: 

There's a pretty good response to my question along these lines here.

jmcd
hanks jmcd ... that got me on the right track and I figured out the rest. (stackoverflow is great)
WayneDV