URL rewritingURL rewriting is an important part of Seo, No matter ASP. NET.ProgramCan be written in other languages.CodeTo intercept the incoming HTTP request and automatically redirect the request to other resources. Using traditional ASP, the only way to rewrite a URL is to write an ISAPI filter or buy a third-party product that provides the URL rewriting function. However, with ASP. NET, you can easily create your own URL rewriting engine in many ways.
ASP. NET tutorialsArticle:
URL rewriting with ASP. NET
Http://www.codeproject.com/kb/aspnet/URLRewriter.aspx
This article provides a good overview of ASP. net url rewriting.
On the Internet, you can find a large number of instances that use URL rewriting to enhance the search engine positioning function.
Urlrouting(URL Routing) is used to make the URL appear more concise, intuitive, and meaningful. You can also use the URL after rewriting through parameters on the page.
For example, the original parameter URL in ASP. NET: Post. aspx? Year = 2010 & month = 6 & day = 1. Use urlrouting to configure URL ing to get a friendly and user-friendly URL:/post/2010/6/1/
Urlrouting is already in ASP. net MVC project is widely used, Asp. net 4.0 is widely used in webform. urlrouting technology appears after URL rewriting, in ASP. in. Net MVC, urlrouting can be converted in two directions. It can be used for URL rewriting and get the URL address after rewriting based on some parameters, but it also has its own shortcomings, for example, if you want to rewrite a domain name together, such as the blog address elock.cnblogs.com, urlrouting will not be able to do so and you can only use urlrewrite.
Related articles in this blog:
Implement URL rewriting using ASP. NET
URL routing configuration of ASP. NET MVC
System. Web. Routing-route profiling