php&& page Static

Source: Internet
Author: User
Page static, mainly for two aspects of consideration.
First: The speed of accessing HTML pages is faster than accessing PHP pages. PHP needs to be parsed when accessing the PHP page. When accessing HTML, the direct browser can parse it out. In particular, the PV volume is very large, at the same time, the premise of a large number of online visits. A simple and effective stress test can be done with Apache's own Ab.exe tool.
A stress test can be done at Apache/bin/ab.exe, which simulates multiple people and accesses a page concurrently
The basic usage
Ab.exe n 10000? c. http://localhost/test.php
-N indicates how many times the request
-C indicates how many people


Second: Facilitate SEO optimization. SEO search engine, more conducive to web crawler searches. At present, most of the portal sites, Sina, Sohu should be used by the static or pseudo-static technology processing. To improve search engine crawling and ranking.
Static is conducive to the principle of SEO: Dynamic PHP or JSP Web site will generally give the browser the corresponding permissions, and static pages do not have the right to this level. And the web crawler, the search engine is equivalent to the identity of visitors to crawl the page information. So the static page is more conducive to the search engine to crawl.


The last site that is statically processed is more secure. And even if a database error occurs, it does not affect the user too much.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

  • 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.