Php & static page

Source: Internet
Author: User
Php & static page static, mainly for two reasons.
First, access to html pages is faster than accessing php pages. When accessing the php page, you need to parse php. When accessing html, the browser can parse it directly. Especially when the PV volume is large and the online traffic volume is large at the same time. You can use the AB .exe tool provided by apacheto perform a simple and effective stress test.
You can perform stress tests on apache/bin/AB .exe. this tool can simulate multiple users and access a page concurrently.
Basic usage
AB .exe? N 10000? C 1000 http: // localhost/test. php
-N indicates the number of requests
-C indicates the number of persons


Second: it is conducive to SEO optimization. SEO search engines are more conducive to searching web crawlers. Currently, most portal websites, Sina and Sohu, should adopt static pages or pseudo-static technologies. To improve search engine crawling and ranking.
Static is conducive to the principle of SEO: Dynamic php or jsp websites generally give corresponding permissions to viewers, while static pages do not have the permission. For web crawlers, the search engine crawls webpage information as a visitor. Therefore, static pages are more conducive to crawling by search engines.


The last static website is more secure. In addition, even if a database error occurs, the user will not be greatly affected.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.