Adding ID and title to URL slugs in ASP.NET MVC

后端 未结 5 894
甜味超标
甜味超标 2020-12-04 07:34

How do you redirect a request in ASP.NET MVC to its correct canonical version if part of the URL is missing?

Using Stack Overflow as an example, the site adds the qu

5条回答
  •  感动是毒
    2020-12-04 07:46

    You should learn about ASP.net MVC routing mechanisms, as Stackoverflow uses this technology. It is quite a complex question to be answered here, but you will find lots of learning resources out there, like: http://weblogs.asp.net/scottgu/archive/2007/12/03/asp-net-mvc-framework-part-2-url-routing.aspx

提交回复
热议问题