In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
Today, I would like to share with you how to set Nginx pseudo-static wordpress related knowledge points, detailed content, clear logic, I believe that most people still know too much about this knowledge, so share this article for your reference, I hope you will learn something after reading this article, let's take a look at it.
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.
These are all the contents of the article "how to set wordpress pseudo-static in Nginx". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
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.