-
Advantages and disadvantages of static pages:
Real static is usually to better alleviate the pressure on the server and enhance the friendliness of search engines, so the web content is generated into static pages. However, the biggest flaw is that every time the content of the web page is modified in the background, the static page needs to be regenerated, and the updated content cannot be displayed in real time, and over time, the amount of space occupied and the server resources consumed by each generation of static pages should not be underestimated (there are cases where there is too much content and a static page is generated at one time, resulting in server crash).
Since pseudo-static is to use regular judgment to determine the page that needs to be jumped to instead of the real page address, the responsibility of distinguishing which page to display is also judged by the direct designation to the server CPU, so the increase in CPU occupancy is indeed the biggest drawback of pseudo-static.
Jiapin design suggestions:
Enterprises can generally turn on pseudo-static, because the number of visits to the enterprise site is generally not large, and the impact of pseudo-static on the CPU is also small, and if the number of visits is large, the server can also be upgraded to solve the problem.
For example, it is recommended to turn on the real static in the foreign space, and the domestic space access should be fast, so you can basically choose to turn on the pseudo-static.
-
1. The benefits of pseudo-static.
Some users feel that the actual amount of inclusion between pseudo-static and pure static will be very different, but in fact, from your personal point of view, you can judge whether a post is pure static or pseudo-static? It is estimated that it is difficult to see, because the so-called static means that the address does not have a question mark, and the one without a question mark is static, regardless of whether it is pure or pseudo? Can search engines see it?
In the final analysis, why does the search engine not include the ** with question marks, because the search engine is afraid of entering a dead loop due to the question mark, called "search robot traps (spidertraps)" (there was such a loophole in the moving web before, and the spider can't get in and out), so many times the address search engine with a question mark will not enter, pseudo-static for search engines, in fact, it is static, because there is no question mark in the address, so there is no pure static than pseudo-static inclusion of more saying.
Second, the shortcomings of pseudo-static.
Of course, as the author of an article said:"If the traffic is slightly larger, the CPU usage will be overloaded if the pseudo-static is used, for example, the number of ISS is 1000, and more than 300 people will hang at the same time, and when the pseudo-static is not used, more than 500 people will not hang at the same time. "Big state.
This is indeed the case, because pseudo-static is judged by regular but simple and pure real address, and the responsibility of not distinguishing which page to display is also transferred from direct designation to judgment by CPU, so the increase in CPU occupancy is indeed the biggest drawback of pseudo-static.
3. Should we choose pseudo-static or pure static?
Let's sum it up:
1. There is no difference between using pure static and pseudo-static for SEO.
2. The use of pure static may cause hard disk damage and affect the performance of the forum.
3. The use of pseudo-static will occupy a certain amount of CPU occupancy, and a large amount of use will lead to CPU overload.
4. The most important point is that we want to be static for SEO
5. The static development cost is relatively high, and it is recommended to consider the cost for small and medium-sized enterprises.
Therefore: 1. The use of a purely static method can be directly excluded, because no matter how it is generated, it is very harmful to the hard disk.
2. Since the effect of pure pseudo-static is the same, we can choose pseudo-static.
3. However, a large number of pseudo-static uses will be overloaded with CPU.
4. So we just don't use it a lot.
5. Since the static is only for SEO, we only need pseudo-static for SEO, and we don't need to use it for users.
6. So we just need to use pseudo-static in the archiver that is specifically provided for SEO crawling.
-
Pseudo-static is relatively real static, usually in order to enhance the friendliness of the search engine, we will generate static pages of article content, but some friends in order to display some information in real time. Or maybe you want to use dynamic scripting to solve some problems. Content cannot be displayed in a static way.
But this loses the search engine friendliness side. How to find a middle way between the two, which leads to pseudo-static techniques. It is shown in the form of a static page such as HTML, but it is actually processed by a dynamic script such as ASP.
1.Judging from the URL structure and page name, pseudo-static and static pages are the same. Pseudo-static page suffixes can be html, htm, or directory format.
2.Pseudo-static just changes the presentation of the URL, which is actually a dynamic page.
3.Static pages can save server resources, while pseudo-static strictly increases server resource consumption.
In summary, in terms of SEO, the function of pseudo-static and static pages is the same, but pseudo-static is still dynamic in nature, so the consumption of resources is the same as that of dynamic pages, and because the rewrite server also needs to consume additional resources.
Of course, when it comes to pseudo-static, we need to talk about the pseudo-staticism supported by different server programs. In addition, the pseudo-static ** used by different website builders is also different.
Let's take the famous website builder discuz as an example.
Let's say we have pseudo-static turned on in the background.
At this time, we can open the "View current rewrite rule" in the upper right corner to view the pseudo-static rules, and then on the page that opens, you can select the rule corresponding to your server.
I'm going to list two typical ones here:
IIS7 and above.
These are the more common hosts.
These are just the surfaces of what I'm talking about. Specifically, you still have to read the relevant information to understand. discuz provides rules, and there are many programs that are not provided, so you need to write them yourself and try them.
-
Pseudo-static is the ** itself is a dynamic web page such as. php、.asp、.ASPX and other dynamic web pages, sometimes such dynamic web pages are also followed by "?"."Add parameters to read different data in the database.
A typical case is the discuz forum system, there is a pseudo-static function in the background, after turning on pseudo-static, the dynamic web page will be converted and rewritten into a static web page type page, and the address accessed through the browser is no different from the real static page. The premise server supports pseudo-static rewrite URL rewrite.
Pseudo-static role:
2. Pseudo-static is of great significance to SEO, the real static page space storage is large, and when deleting or updating these HTML files, it can cause a large number of file fragments and destroy the bad sectors of the disk, while pseudo-static can better relieve the pressure on the server and enhance the search engine's inclusion of the page.
-
As a simple example, the ICP filing process for a personal domain name looks like this. HTML as a suffix is a typical static **, that is**pseudo-static expression. As opposed to pseudo-static, it is dynamic**, so that the link with a hello is a dynamic **.
2. Pseudo-static is of great significance to SEO, the real static page space storage is large, and when deleting or updating these HTML files, it can cause a large number of file fragments and destroy the bad sectors of the disk, while pseudo-static can better relieve the pressure on the server and enhance the search engine's inclusion of the page. Dynamic pages, while updated in real time, can sometimes lead to an endless loop that is not search engine friendly, whereas pseudo-static is not.
Hope it can be adopted, thank you.
-
2.Performance advantages, static pages have more advantages than pseudo-static when the number of user visits is large.
3. The safety performance is basically a static state.
4. Practical application, pseudo-static is more flexible than static, and some of those that cannot be static can be pseudo-static.
However, pseudo-static also has certain drawbacks, pseudo-static is not really static, and large traffic will cause CPU load!
-
In fact, there are two types of forms, static and dynamic, pseudo-static is not really static, and it is essentially a dynamic page.
Static pages, except for our common ones. htm andhtml post, .
asp .php .JSP can also be static, the key is to look.
asp .php .Whether the jsp pages call something in the database, if not, it is a static page, and if it is called, it is a dynamic page.
The meaning of the dynamic page is that the web page will be screened from the server database according to the visitor's request, and the content that the visitor wants is displayed on the visitor's browser, different people visit the same page, they will see different content, there is no data in the web page itself, only some **, what the visitor sees, are called up from the server.
The static page is to put the text ** into the page in advance, no need to call it from the database, visitors visit a page, will directly read the page from the server and display it to the visitor's browser, without the support of the database.
Pseudo-static pages, the purpose of which is to be better indexed by search engines and through certain rules, the address of the dynamic page is converted into an address ending in htm or html, which looks static, but is actually still a dynamic page.
Nowadays, many CMS** programs can directly generate real static dynamic pages, that is, the visited pages are real and existing, and the root static pages are the same. The advantage of this is that the access speed is fast, and there is no need to frequently read the data in the filtering server, which reduces the pressure on the server and can also be better indexed by search engines.
-
2. Improve users' trust in the homepage;
How to choose between pseudo-static and true static:
1. The most important point is that it should be static for SEO;
2. The use of pseudo-static will occupy a certain amount of CPU occupancy, and a large amount of use will lead to CPU overload;
3. There is no difference between using true and fake static for SEO;
4. The use of true static energy will cause damage to the hard disk.
Brake fluid plays a transmission role in the braking system of an automobile (Figure 1-93). Press the brake pedal with your foot, with the assistance of vacuum booster, push the brake master cylinder, the brake master cylinder pushes the brake fluid, and the power under your feet is transmitted to the brake cylinder to which the four wheels belong through the brake fluid, and the brake cylinder pushes the brake pad, and the brake pad squeezes the brake disc to form a braking force. >>>More
Mixed rare gem material is known as "mixed gemstone" material, which is composed of a variety of rare complex crystals and minerals. >>>More
Upstairs. It's very clear!
I don't need to explain it anymore! >>>More
For the inheritance of the class.
class derive : virtual public base{};The virtual base class mainly solves the problem that the base class may be inherited multiple times when there is multiple inheritance, and the virtual base class mainly provides a base class to the derived class, such as: class b{}; class d1 : >>>More
The theory of civilization is only suitable for our present objective environment!! What principles of flight, what does not conform to aerodynamics, etc., are pure stupidity!! I ask you, what did the ancients think when they saw a fighter jet? >>>More