Home Web Front-end HTML Tutorial What is Pseudo-Static state

What is Pseudo-Static state

Nov 22, 2017 pm 02:49 PM
What static

Today I would like to introduce to you what pseudo-static is and the role of pseudo-static. Pseudo-static is relative to real static. Usually, in order to enhance the friendliness of search, we generate static pages from article content, but some friends want to display some information in real time. Or you also want to use dynamic scripts to solve some problems. Website content cannot be displayed in a static manner. But this loses the friendliness of the search index. How to find a middle method between the two, which gave rise to pseudo-static technology. What is displayed is a static page such as HTML, but it is actually processed using dynamic scripts such as ASP.

Pseudo-static means that the website itself is a dynamic web page such as .php, .asp, .aspx and other formats. Sometimes such dynamic web pages also add parameters with "?" to read different data in the database. A very typical case is the discuz forum system. There is a pseudo-static function in the background. After pseudo-static is turned on, the dynamic web page is converted and rewritten into a static web page type page. The address accessed through the browser is no different from the real static page. The prerequisite is that the server supports the pseudo-static URL Rewrite function.

Where pseudo-static functions are needed

Consider search engine optimization (SEO) and process dynamic web pages into static pages through the server, such as www.xxx.com/jk/fd.php?=12 Dynamic web pages are processed into static pages in the format www.xxx.com/jk-fd-12.html. Common forum post pages are pseudo-statically processed into static page format html pages.

Considering that the programming language used by the website is not easy to be discovered, the program suffix of the dynamic web page is changed to the static page format of html by rewriting it to pseudo-static.

The pros and cons of pseudo-static

Of course, as the author of an article said: "If the traffic is slightly larger and pseudo-static is used, the CPU usage will be overloaded. I have 300 online at the same time. It hangs for many people, but when more than 500 people are online at the same time without using pseudo-static, it does not hang. My IIS number is 1000. "

This is indeed the case, because pseudo-static uses regular expressions instead of judgment. As for the real address, the responsibility for determining which page to display is transferred from direct specification to the CPU. Therefore, the increase in CPU usage is indeed the biggest drawback of pseudo-static.

Should we choose pseudo-static or true static?

1. There is no difference between using true static and false static for SEO

2. Using true static may cause hard disk damage and affect forum performance

3. Using pseudo-static will occupy a certain amount of CPU occupancy, and heavy use will cause CPU overload

4. The most important point is that we want static for SEO

So:

1. Using the true static method can be directly eliminated, because no matter how it is generated, it will be very harmful to the hard disk.

2. Since the effect of true and false static is the same, we can choose pseudo static.

3. However, extensive use of pseudo-static will cause CPU overload.

4. So as long as we don’t use it in large quantities, it’s fine.

5. Since static is only for SEO, we only need pseudo-static for SEO, and there is no need for users to use it.

6. So we only need to use pseudo-static in the Archiver specially provided for SEO crawling.

7. Thank you all for your patience in reading my article.

8. If you have any questions or different opinions, please feel free to ask.

Comments on pseudo-static and true static

There is an essential difference between true static and pseudo-static. Processing a pure HTML for browsing users and a PHP that calls multiple data have significantly less CPU usage than the former. I remember someone once said that html downloads are frequently read and written to the hard disk. He said this as if reading the database does not require reading and writing to the disk. What's more, there are a lot of cached scattered PHP files that are also placed on the hard disk. Doesn't these reads require disk operations? ridiculous.

Reading a single htm+pictureFlash and other attachments can achieve the purpose, why bother reading the database, reading the php cache file, reintegrating the data output, and then +pictures Flash and other attachments are so big Where is Fei Zhouzhang? The CMS home page does not require a lot of interaction, and the forum version should not be used here. On the contrary, what should be considered more is: beauty! compatible! Intuitive information! performance! And stability!

Through our introduction, we believe that everyone has already understood pseudo-static. Friends in need can save it. Please also continue to pay attention to other updates on this site.

Related reading:

How to clear floats in CSS


How to use the label tag in html


How to modify the HTML title tag element

The above is the detailed content of What is Pseudo-Static state. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to set up the keyboard boot function on a GIGABYTE motherboard (enable keyboard boot mode on GIGABYTE motherboard) How to set up the keyboard boot function on a GIGABYTE motherboard (enable keyboard boot mode on GIGABYTE motherboard) Dec 31, 2023 pm 05:15 PM

How to set up keyboard startup on Gigabyte's motherboard. First, if it needs to support keyboard startup, it must be a PS2 keyboard! ! The setting steps are as follows: Step 1: Press Del or F2 to enter the BIOS after booting, and go to the Advanced (Advanced) mode of the BIOS. Ordinary motherboards enter the EZ (Easy) mode of the motherboard by default. You need to press F7 to switch to the Advanced mode. ROG series motherboards enter the BIOS by default. Advanced mode (we use Simplified Chinese to demonstrate) Step 2: Select to - [Advanced] - [Advanced Power Management (APM)] Step 3: Find the option [Wake up by PS2 keyboard] Step 4: This option The default is Disabled. After pulling down, you can see three different setting options, namely press [space bar] to turn on the computer, press group

What is the best graphics card for i7 3770? What is the best graphics card for i7 3770? Dec 29, 2023 am 09:12 AM

What graphics card is good for Core i73770? RTX3070 is a very powerful graphics card with excellent performance and advanced technology. Whether you're playing games, rendering graphics, or performing machine learning, the RTX3070 can handle it with ease. It uses NVIDIA's Ampere architecture, has 5888 CUDA cores and 8GB of GDDR6 memory, which can provide a smooth gaming experience and high-quality graphics effects. RTX3070 also supports ray tracing technology, which can present realistic light and shadow effects. All in all, the RTX3070 is a powerful and advanced graphics card suitable for those who pursue high performance and high quality. RTX3070 is an NVIDIA series graphics card. Powered by 2nd generation NVID

Choosing the right tablet for music students Choosing the right tablet for music students Jan 10, 2024 pm 10:09 PM

Which tablet is suitable for musicians? The 12.9-inch speaker in Huawei’s iPad is a very good product. It comes with four speakers and the sound is excellent. Moreover, it belongs to the pro series, which is slightly better than other styles. Overall, ipad pro is a very good product. The speaker of this mini4 mobile phone is small and the effect is average. It cannot be used to play music externally, you still need to rely on headphones to enjoy music. Headphones with good sound quality will have a slightly better effect, but cheap headphones worth thirty or forty yuan cannot meet the requirements. What tablet should I use for electronic piano music? If you want to buy an iPad larger than 10 inches, I recommend using two applications, namely Henle and Piascore. Provided by Henle

Choose the driver version that suits your RX580 Choose the driver version that suits your RX580 Dec 29, 2023 pm 05:34 PM

What driver is good to install on rx5808g? 20.5.1 and 20.4.2WHQL refer to the version number of the software or driver. These version numbers are typically used to identify updates or fixes to software or drivers. In the computer world, WHQL stands for Windows Hardware Quality Labs, which is an institution used by Microsoft to test and verify the compliance and stability of hardware and drivers. Therefore, 20.5.1 and 20.4.2WHQL indicate that these software or drivers have passed Microsoft's testing and verification and can be safely used in the Windows operating system. AMDrx580 graphics card relatively stable drivers 20.5.1 and 20.4.2WHQL refers to the version number of the software or driver. These version numbers are passed

Which games are suitable for playing with i34150 and 1G independent graphics (which games is suitable for i34150) Which games are suitable for playing with i34150 and 1G independent graphics (which games is suitable for i34150) Jan 05, 2024 pm 08:24 PM

What games can be played with i34150 with 1G independent graphics? Can it play small games such as LoL? GTX750 and GTX750TI are very suitable graphics card choices. If you just play some small games or not play games, it is recommended to use the i34150 integrated graphics card. Generally speaking, the price difference between graphics cards and processors is not very big, so it is important to choose a reasonable combination. If you need 2G of video memory, it is recommended to choose GTX750TI; if you only need 1G of video memory, just choose GTX750. GTX750TI can be seen as an enhanced version of GTX750, with overclocking capabilities. Which graphics card can be paired with i34150 depends on your needs. If you plan to play stand-alone games, it is recommended that you consider changing the graphics card. you can choose

In-depth analysis of the role and usage of the static keyword in C language In-depth analysis of the role and usage of the static keyword in C language Feb 20, 2024 pm 04:30 PM

In-depth analysis of the role and usage of the static keyword in C language. In C language, static is a very important keyword, which can be used in the definition of functions, variables and data types. Using the static keyword can change the link attributes, scope and life cycle of the object. Let’s analyze the role and usage of the static keyword in C language in detail. Static variables and functions: Variables defined using the static keyword inside a function are called static variables, which have a global life cycle

What is the function of cortana? What is the function of cortana? Jan 15, 2024 pm 10:15 PM

In the process of using the Windows 10 operating system developed by Microsoft, many users are curious and confused about the new technology called Cortana. Cortana's official name in the Chinese context is "Cortana", which is actually a built-in function of the Windows 10 system. Cortana, an artificial intelligence (AIassistant) service program. Frequently asked questions and solutions. How to open Cortana and not respond. Solution steps. Chinese solution is not supported. How to put the search box into Cortana. What software is Cortana? Answer: "Cortana" It is a cloud platform personal intelligent assistant carefully built by Microsoft. It has two usage modes: login and non-login. When you are logged in

What is Calloc in C language? What is Calloc in C language? Sep 10, 2023 pm 07:45 PM

The C library memory allocation function void*calloc(size_tnitems,size_tsize) allocates the requested memory and returns a pointer to it. The difference between malloc and calloc is that malloc does not set the memory to zero, while calloc sets the allocated memory to zero. Memory Allocation Function Memory can be allocated in two ways as mentioned below - Once memory is allocated at compile time, it cannot be changed during execution. There will be problems of insufficient or wasted memory. The solution is to create memory dynamically, that is, create memory according to the user's requirements during the execution of the program. The standard library functions for dynamic memory management are as follows: -malloc()calloc()realloc()free

See all articles