Is there an article somewhere explaining exactly how the route matching works and what it is capable of?
For example, how would I write a route to catch everything, so that:
/ /something /something/else /something/else/again
all get mapped to the same controller action, with the URL passed as a parameter?
{*anything}
The above doesn’t seem to work. Can it not handle slashes inside arguments?
The code below catches almost everything.
for instance would still be routed to default.aspx,I think. But something like
http://www.mysite.com/some/page/that/doesnt/exist
would be caught by the TestRouteHandler. The {*fields} route specifier should wind up in the RequestContext.RouteData object passed to the router so you can do whatever you want. However, at that point, you’re basically implementing a rewrite engine.
alternatively, you can specify a top-level route like
which will catch items like.