What is php pseudo-static?
This article introduces the knowledge of "what is php pseudo-static". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Php pseudo-static refers to the presentation of static pages such as html, but it is actually handled by dynamic scripts. Open the pseudo-static method: 1, configure the .htaccess file and upload to the root directory of the site; 2, enter the wordpress background, set the custom structure.
This article operating environment: windows10 system, php 7, thinkpad T480 computer.
Let's first explain what pseudo-static is.
Pseudo-static technology refers to the presentation in the form of static pages such as html, but it is actually handled by dynamic scripts.
Enable pseudo-static:
There are only two tools you need. First, you need the .htaccess file, and then open the created .htaccess file with notepad and enter the code:
# BEGIN WordPressRewriteEngine OnRewriteBase / RewriteCond% {REQUEST_FILENAME}!-fRewriteCond% {REQUEST_FILENAME}!-dRewriteRule. / index.php [L] # END WordPress
Then save and upload to the root of the website
Step 2: enter the wordpress backend, and then find: * * Settings * *, select * * Custom structure * *, and fill in /% post_id%.html at * * Custom structure * *.
Finally, if your site has a cache plug-in, it needs to be updated.
This is the end of the content of "what is php pseudo-static". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!