0

Simple question:

How do I match a string in the MVC3 routing system?

Example:

{sub}.domain.com/{contoller}/{action}/{id}

sub = [Match any string here]
Ryan Smith
  • 475
  • 1
  • 8
  • 19

1 Answers1

1

Looks like your question has been answered here.

Basically, to get to the {subdomain}.domain.com, the normal route handler won't look there, but you can create your own custom Route class which does, and register it in your Global.asax Application_Start().

Community
  • 1
  • 1
Raul Nohea Goodness
  • 2,549
  • 23
  • 24