Quoting Baidu's explanation of pseudo-static: Pseudo-static is relative to real static. Usually, in order to enhance the friendliness of search engines, we generate static pages for article content, but some friends want to display some information in real time. Or you may want to use dynamic scripts to solve some problems. Website content cannot be displayed in a static way. But this will lose the friendliness to search engines. How to find a middle ground between the two? This is where pseudo-static technology comes into play. It is displayed in the form of a static page such as HTML, but is actually processed using a dynamic script such as ASP. First, configure the server module in Nginx as follows: location / { if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /index.php; } } After the configuration is complete, restart Nginx Then, in the "Settings" - "Permanent Links" of the WordPress blog background, customize the structure (my setting is: /%category%/%post_id%.html, that is: category/article id.html), as shown in the figure: At this point, the pseudo-static setting of the WordPress blog is completed. Here is a brief introduction to the fixed link setting parameters: 1. %year% is based on the year the article was published, such as 2007; By combining the above parameters, you can get the fixed link form of WordPress. Several common settings methods on the Internet: The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: MySQL SQL statement method to hide the middle four digits of the mobile phone number
>>: Notes on using $refs in Vue instances
1. Why does nginx use gzip? 1. The role of compre...
CSS naming rules header: header Content: content/c...
1. View the types of fields in the table describe...
Permission denied: The reason for this is: there ...
Starting from IE 8, IE added a compatibility mode,...
Table of contents 1 Introduction 2 Trigger Introd...
Origin: A few days ago, a tester sent a requireme...
The specific usage of the Vue image drag and drop...
1. Overview of DDL Atomicity Before 8.0, there wa...
Alibaba Cloud Server installs and configures Tomc...
About Recently, in the process of learning Vue, I...
history route History mode refers to the mode of ...
In the past two days, I have been very troubled t...
This article shares the specific code of the WeCh...
This article shares the specific code of node+exp...