In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Duniang's explanation of pseudo-static: pseudo-static is relatively real and static, usually in order to enhance the friendly side of the search engine, we generate static pages of the article content, but some friends in order to display some information in real time. Or you may want to use dynamic scripts to solve some problems. The content of the site cannot be displayed in a static way. But this loses its friendliness to search engines. How to find an intermediate method between the two, which leads to pseudo-static technology. What is shown is in the form of static pages such as html, but it is actually handled by dynamic scripts such as ASP.
First, the server module in Nginx is configured as follows:
Location / {if (- f $request_filename/index.html) {rewrite (. *) $1/index.html break;} if (- f $request_filename/index.php) {rewrite (. *) $1 request_filename index.php;} if (!-f $request_filename) {rewrite (. *) / index.php;}
After the configuration is complete, restart Nginx
Then, in the "Settings"-"fixed links" at the background of the wordpress blog, 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 complete.
Here is an overview of the fixed link setting parameters:
1.% year% is based on the year in which the article was published, such as 2007
2.% monthnum% is based on the month in which the article was published, such as 05
3.% day% is based on the date the article was published, such as 28
4.% hour% is based on the number of post hours, such as 15
5.% minute% publishes based on the number of minutes of the article, such as 43
6.% second% is based on the number of seconds an article is published, such as 33
7.% postname% is based on the postname of the article, whose value is the acronym specified at the time of writing, and the title of the article if the abbreviation is not specified.
8.% post_id% is based on article post_id, such as 423
9.% category% is based on article classification, and subcategories are processed into the form of "classification / subclassification"
10.% author% is based on the author name of the article.
The fixed link form of wordpress can be obtained by combining the above parameters. Several common setting methods on the Internet:
/% year%/%monthnum%/%day%/%postname%/
/% year%/%monthnum%/%postname%/
/% year%/%monthnum%/%day%/%postname%.html
/% year%/%monthnum%/%postname%.html
/% category%/%postname%.html
/% category%/%post_id%
/% postname%.html
/% post_id%.html We generally use this method better.
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.