Home > CMS Tutorial > WordPress > Detailed explanation of how WordPress implements pseudo-static

Detailed explanation of how WordPress implements pseudo-static

爱喝马黛茶的安东尼
Release: 2019-07-16 13:53:57
Original
4954 people have browsed it

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.

Detailed explanation of how WordPress implements 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:

Detailed explanation of how WordPress implements pseudo-static

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

Detailed explanation of how WordPress implements pseudo-static

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

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!

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