Urlrouting (URL Routing) and urlrewrite (URL rewriting) Enable friendly URLs

Source: Internet
Author: User

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.