When a page jumps to another page, all parameters on the page are discarded. Dynamic pages generally use the URL address to save all the parameters on the page, so that the search engine in the admission of the page, may be because of the question mark into the dead loop, so many times the address with question marks will not go in, thus reducing the efficiency of the page collection. Static Web page URL just without a question mark, so we want to forge static, the purpose is to SEO, improve the efficiency of the site collection. The following section is about the use of pseudo-static technology.
First, you can learn the free course of PHP Chinese network.
1. Watch the pseudo-static video tutorial in the "PHP implementation page static video tutorial"
PHP Pseudo-Static technology
1. PHP pseudo-Static graphic code detailed introduction
The use of pseudo-static, will consume CPU resources, but for SEO what is more beneficial, not pseudo-static but use pure static (such as HTML), will cause the hard disk read-write bottleneck; The method of pseudo-static in PHP can be solved not only in the routing aspect, but also with Apache, Ngnix server, and other ways to achieve.
2. PHP redirection and pseudo-static differences
Pseudo-Static is an important method of SEO, through redirection to achieve, and can be redirected to hide the technology of the site, filtering abnormal access. This lesson is divided into two parts, the first half detailing the basics of Apache redirection, the second half of which deepens the understanding of redirection through multiple real-world cases, and demonstrates the actual effects of various redirection settings.
3. Pseudo-static, static and dynamic differences and various pseudo-static setup methods
Static Url:url similar to your domain name/news/2012-5-18/110.html we are generally called true static URLs, each page has a real physical path, that is, the real existence of the server.
Dynamic Url:url similar to your domain name/newsmore.asp?id=5 or/daikuan.php?id=17 for your domain name, with? Number of URLs, we are generally called dynamic URLs, each URL is just a logical address, not the real physical presence of the server hard disk.
Pseudo-static url:url like the PHP Chinese web http://www.php.cn/course/74.html This URL is similar to a true static URL. He uses pseudo-static rules to disguise dynamic URLs as static URLs. is also a logical address, there is no physical address.
4. Three ways to implement PHP pseudo-static pages
Direct output when the client accesses it. No scripting explanation. It works well when traffic is very large, such as millions of visits per day. That is to say, the server side actually exists this HTML page.
Of course, the traffic on your site is not that big. URL rewriting is the best method (personal view, when large traffic can be considered load balanced.) Similarly, there are a number of methods for URL rewriting, Apache,iisrewrite. Even PHP scripts can be processed directly.
5. PHP Pseudo-static
Read a single html+ image flash and other accessories can be achieved, why bother to read the database and read the PHP cache file and re-integration of data output and other accessories such as flash pictures so much trouble? CMS home does not need a lot of interaction, forum that set should not get here to use, on the contrary should be more consideration is: beautiful! Compatible! The intuitive information! Performance! There's stability!
6. PHP simple pseudo-static URL mechanism implementation
Because our system supports pseudo-static, the previous system was directly using the server Apache or IIS rewrite file definition rules, and the framework does not have any routing mechanism, so this framework is ready to use the new policy, PHP implementation of the routing mechanism. So I began to explore the realization of the function of the road. Before I developed it, I first understood what the ' routing mechanism ' was going to do, and it mainly did two things.
Related questions
1. Why is pseudo-static rules invalid?
2. Pseudo-Static setup issues
3.. htaccess pseudo-static problem
"Recommended"
1. PHP Chinese Web free Tutorial: PHP full self-study manual
2. PHP Chinese Web free video tutorial: "Php.cn lonely Nine Cheap (4)-php video Tutorial"