URL rewriting in .NET 4?

2019-04-09 10:17发布

问题:

I heard that in Visual Studio 2010 give built-in functionality for URL rewriting using its URL Routing engine.

I did URL rewriting in earlier version of visual studio by using plug in like intelligencia urlrewrite.

Can any one explain me or guide me to understand that?

Want to implement dynamic and custom url rewriting in my website.

回答1:

Are you refering to .net 4.0 URL Routing ?

URL routing was a capability we first introduced with ASP.NET 3.5 SP1, and which is already used within ASP.NET MVC applications to expose clean, SEO-friendly “web 2.0” URLs. URL routing lets you configure an application to accept request URLs that do not map to physical files. Instead, you can use routing to define URLs that are semantically meaningful to users and that can help with search-engine optimization (SEO).