What is pseudo-static? Why should PHP use pseudo-static?

Source: Internet
Author: User
In the introduction of pseudo-StaticAfter the addition of two nouns, parsing static URLs: pure static HTML document, can use filetype:htm query to the Web page, dynamic URL: Content in the database, according to the requirements to display content, URL in the? # & Show different parameters, such as: news.php? lang=cn&class=1&id=2

pseudo-Staticis relatively true and static in terms of.
First, what is static technology?
The so-called static meaning, is the address without a question mark.
Second, why use pseudo-static technology?
One of the biggest features of Web applications is stateless, when a page jumps to another page, then all the parameters on the page are discarded, so the dynamic page generally uses the URL address to save its parameters, like this:
Www.attjs.net/essay.asp?id=1
In this way, the search engine in the admission of the page, may be because of the question mark into the dead loop (before the network has such a loophole, the spider does not come in), so many times with a question mark address is not going in, so it reduces the efficiency of the page inclusion.
In this case, then choose the URL without question mark is not a better way to let the search engine to include their own web pages? Do. 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.
1. About the use of pseudo-static
Some users feel that pseudo-static and true static is included in the actual amount will vary greatly, in fact, from your personal point of view, you to determine whether a post is true static or pseudo-static?
Estimate is difficult to see, because the so-called static meaning, is the address without question mark, without question mark is static, tube he is true or pseudo? Search engine can see? So, in fact, whether it is true or false, in fact, the search engine is the same, the search engine did not say, you this is pseudo, I do not collect you.
Root knot, why search engines do not include a question mark of the URL? Because the search engine fear because of the question mark and enter the dead loop, so many times the address with question marks will not go in, pseudo-static for the search engine, is actually static, because the address is not with a question mark, So there is no real static than pseudo-static more than the argument.
2. About the disadvantages of pseudo-static
Of course, as the author of an article said, "if the flow slightly larger use pseudo-static CPU use overload, my online more than 300 people hang up, and do not use pseudo-static when the online Super 500 people are not hanging, my ISS number is 1000" is really this, Because pseudo-static is to use regular judgment rather than the real address, to determine exactly which page to show the responsibility of the direct specified by the CPU to judge, so the increase in CPU occupancy, is indeed the biggest false static shortcomings.
Summarize
1. The use of true static method can be directly excluded, because no matter how the generation, the hard disk is very hurt.
2. Since the authenticity of the static effect, we can choose Pseudo-static.
3. However, excessive use of pseudo-static can cause CPU overload.
4. So we can just not use a lot of it.
5. Since static is only for the SEO to see, we only need pseudo-static to SEO on the line, do not need to users.
6. So we can only use pseudo-static in the archiver which is specially provided to the SEO crawl.

Hopefully this article will help you with your work.

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.