Kam*_*ski 5

您可以example.com/Ana使用参数路由到Home/Index(您可以将控制器和操作更改为所需的).只需在路由字典中添加新路由即可

routes.MapRoute(
    "UserPage",                                              
    "{controller}/{action}/{user}",                           
    new { controller = "Home", action = "Index", user = "" }  
); 
Run Code Online (Sandbox Code Playgroud)

您可以在ASP.NET上阅读有关路由的更多信息

注意:正如Alexei Levenkov所说,它需要.Net MVC以这种方式进行路由.