php pseudo-static refers to displaying it in the form of a static page such as html, but it is actually processed by dynamic scripts. How to enable pseudo-static: 1. Configure the .htaccess file and upload it to the root directory of the website; 2. Enter the WordPress backend and set a custom structure.
The operating environment of this article: windows10 system, php 7, thinkpad t480 computer.
Let’s first explain what pseudo-static is.
Pseudo-static technology refers to displaying it in the form of static pages such as HTML, but it is actually processed by dynamic scripts.
Enable pseudo-static:
There are only two tools required. First, you need the ..htaccess file. Then open the created .htaccess file with Notepad and enter the code:
# BEGIN WordPress RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress
Then save and upload it to the root directory of the website;
Step 2: Enter the WordPress background and find: [Settings] at [Fixed Links], select [Custom Structure] at [Custom Structure] Fill in /%post_id%.html
Finally, if your website has a caching plug-in, it needs to be updated.
Recommended learning: php training
The above is the detailed content of What does php pseudo-static mean?. For more information, please follow other related articles on the PHP Chinese website!