Thoroughly understand the pros and cons of dynamic and static pages

Source: Internet
Author: User

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

Generally speaking, the URL address of Web page has three kinds of forms, static form, pseudo static form, dynamic form. stationmaster all know static form is the most ideal webpage form, because it is the most friendly search engine, more easily be found by search engines, static Web address is true, and the static form of the URL address is also the most beautiful, there are no special variables in the address of the symbols, such as?, &,% and other symbols, These symbols to let people feel more unfamiliar, easy to produce mistrust. Pseudo-static form of the page effect secondly, it is the essence of the dynamic form, it is through the URL rewrite technology to insert the parameter into the URL address, can be said to be trickery, it points to the file is not the real address. So why do pseudo static processing? Because it can be well indexed by search engines. A dynamic page is not a Web page file that exists on the server, and the server only returns a full Web page when the user requests it; the content on the dynamic page exists in the database and provides personalized Web content based on the different requests made by the user. Below we have a more in-depth understanding of these three advantages and disadvantages and differences.

Static page Advantages and disadvantages: Why the search engine on the static page love it? Because it is the actual existence, without the compilation of the server, directly loaded into the client browser display, but also the advantage is that no matter how you access all just let the server pass data to the requester, do not do script calculation and read the background database. Access is fast and can span servers across platforms. Thus greatly improve the access speed and reduce some of the security risks, so that the search engine easy and easy access to the content of the page. But the good things always have a place, static page content is not stored in the database, it has been separate in the server space files, so the need to occupy space memory, give an example to illustrate: Discuz Forum are pseudo static form of access, if there are 100,000 posts on the forum, Suppose a post size matter about 100K, then production static words will produce 100,000 HTML files, right, to capacity is not to occupy the space of the server 10G? This does not calculate the space waste caused by disk storage mechanism. It is conceivable that static pages are more space-consuming resources. We generally lease the virtual host, but also is only within 5G of virtual space, how enough?

Advantages and disadvantages of pseudo static form: it fully combines the advantages of static pages and dynamic pages, solve the static page occupy more space capacity problem, can also better deal with the search engine, may be some webmaster feel, pseudo static and true static actual content will vary greatly, actually, from your personal perspective, Are you going to judge whether a post is really static or pseudo static? It is difficult to see, because the so-called static meaning, is the address without a question mark, without a question mark is static, whether he is true or false? Can the search engine see it? So, in fact, whether it is true or false, in fact, for search engines are the same , search engine did not say, you this is false, I do not collect you. However, there are some small shortcomings, because the pseudo static is in the access time browser with the regular judge rather than the real address, to identify which page is the responsibility of the direct designated by the CPU to judge, so the increase in CPU occupancy, when the flow is too large to appear CPU use overload, will be the website server appears the service abnormal phenomenon, this is the pseudo static biggest malady.

The advantages and disadvantages of dynamic pages: Dynamic pages are running on the server side of the program, Web pages, components, belong to dynamic Web pages, they will be different customers, different time, return to different Web pages, such as ASP, PHP, JSP, asp.net, CGI, etc., have very good interactivity. And a lot of disadvantages: 1, because of its interactive, so the site has a great security risks, if the development of the design staff in the programming process security is not considered in place, the site is very easy to be hacked;

2, the dynamic site on the page of the information must be read from the database, every open a page to read the database once, if the number of visitors to the site, which will add a lot of load on the server, thus affecting the speed of the site's operation;

3, Dynamic Web site design is not very friendly to search engines, because the search engine may be due to some variables of the URL into the dead loop, called "Search Robot Trap (spidertraps)" (formerly mobile nets have such a loophole, spiders go out of the way), So many times with more variable address search engines will not go in.

Summary: All of the above three forms of URL form of the Web site program I have used, they each have their own strengths, to do a good job of the site, with what form of the URL, the most critical is depending on the size and type of your site, generally speaking, small sites or less content of the site, it is best to directly generate pure static files, This is very easy to access and included, if the site is large, it is best to use pseudo static form, you can save space capacity, and then choose dynamic form, said here, hope to help you. This article from http://cs.588jz.com Webmaster Original, I wish you all the Web site traffic soared.

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.