Вы можете определить следующий маршрут в Global.asax:
routes.MapRoute(
"MyStringRoute",
"{*mystring}",
new { controller = "Home", action = "Index" }
);
, который вызовет действие Index
контроллера Home
:
public class HomeController : Controller
{
public ActionResult Index(string mystring)
{
return View();
}
}