Talk about the benefits of using pseudo static (URL rewrite) methods to generate static pages

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

What is pseudo static (URL rewrite), URL rewriting is the process of intercepting incoming Web requests and automatically redirecting requests to other URLs. For example, the browser sends a request: Http://www.zn114.com/SoShow_1069.aspx, the server automatically directs this request as http://www.zn114.com/SoShow.aspx?qn=1069. The advantages of URL rewriting are: 1, shorten the URL, hide the actual path to improve security, 2, easy to user memory and typing 3, easy to be indexed by search engines.   webmasters like to generate static pages that I haven't done in years. Always replace the build static page with the URL rewrite technique. Microsoft's official website has always been done with URL rewrite, I used to follow Microsoft and think that the technology they use must be reasonable. Use more, found that there are some other experience.   Personally, the benefits of generating HTML static pages are three points; one is to reduce the server's load on the data response, and the second is to load the database, the response speed is fast. The third is to facilitate the engine of the. Disadvantages also have three points: first, the maintenance is not convenient, each time to manually generated. Third, space occupancy is relatively large. Third, generated more files, the server's response to HTML files is heavier. The benefits of  url rewrite: First, it is convenient to implement the optimization of the engine, and more convenient than the generation of static. Second, occupy a relatively small space. Third, the home page automatically changes every day, without maintenance. Home page generally have hot spots and so on, you can set for, 24-hour ranking, a week ranking, plus the latest articles, the latest reviews and so on. So the home page is changed every day. Four, easy to advertise the wheel is obvious. For example: You can put art1234.aspx, this virtual into n pages, such as art_1234.aspx,news_1234.aspx,top_1234.aspx, in different pages put different ads. In short, it is dynamic, you can move. (The strongest is my previous station, every 8:00 automatically into the Cheat page, early 6:00 and back. The cheating page is forced to click, take a look at the percentage of the day, let it in a reasonable range, such a half year time ... Not to mention this topic. Cheating is wrong, but the name of the league, if I say it, will be very snort.     URL Rewrite disadvantages: I think there is only one, it is not efficient to generate HTML, because it is not a real sense of static pages, each request is to read the database. But you can use caching techniques to compensate. Under the asp.net there are three kinds of cache, data, fragments, pages, ad pages are made into user control plus fragment caching, which can effectively prevent the problem of advertising hanging.   Finally give me an example of my station. Www.zn114.com, a space tiedThe method of the stator catalogue makes two stations. By the way, URL rewriting technology allows you to bind n sites in one station. Not ASP's homepage to jump, technical webmaster can communicate.

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.