As we all know, the default link in wordpress is a dynamic link. Although search engines now have very good collection of dynamic links, we still very much hope that based on the beauty of the link and pseudo-static, it is better for search engines. Set our wordpress to pseudo-static mode, so today we will talk about how to set up wordpress to be pseudo-static.
Linux host user
If the host you are using is a Linux operating system, then pseudo-static is very simple, a lot The Linux host has a one-click button to set up pseudo-static settings. You can easily set it up with one click:
Related recommendations: "WordPress Tutorial"
After setting it up, set it in the wordpress background - click on the custom structure in the fixed link: /%postname%.html
This way the pseudo-static of the Linux host will be OK ! If your host does not have a one-click setting pseudo-static button, you need to fill it in manually:
According to official and online posts, the code is as follows:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
Save as .htaccess Just save the format to the root directory. Then go into the background and change the fixed link.
If your website has a very large number of visits, pseudo-static may not be able to meet your requirements, because dynamic links (pseudo-static is also fake, not real) will cause excessive pressure on the server, so we Need to turn our website into "true static"!
First install the WP Super Cache plug-in. This plug-in can generate html files so that users can access real html! This plug-in has been upgraded now and is very easy to use. If you are using a Linux host, then you can install it, then select the recommended option in the options, save it, and you are set!
The above is the detailed content of Detailed explanation of how WordPress implements pseudo-static. For more information, please follow other related articles on the PHP Chinese website!