What does php pseudo-static mean?

王林
Release: 2023-03-13 13:00:01
Original
2933 people have browsed it

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.

What does php pseudo-static mean?

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
Copy after login

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!

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template