In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
In this article Xiaobian for you to introduce in detail "what are the pseudo-static rules of Typecho procedures", the content is detailed, the steps are clear, and the details are handled properly. I hope that this article "what are the pseudo-static rules of Typecho procedures" can help you solve your doubts? let's follow the editor's ideas slowly to learn new knowledge.
1. Linux apache environment (.htaccess):
The copy code is as follows:
Rewriteengine on
# the following is in the root directory, and the folder needs to be modified to the path, such as / laozuo/
Rewritebase /
Rewritecond% {request_filename}!-f
Rewritecond% {request_filename}!-d
Rewriterule ^ (. *) $/ index.php/$1 [l]
# Jump with www to one without
Rewritecond% {http_host} ^ www.laozuo.org
Rewriterule (. *) http://laozuo.org/$1 [ringing 301Jol]
# Jump without www to with
Rewritecond% {http_host} ^ laozuo.org
Rewriterule (. *) http://www.laozuo.org/$1 [ringing 301Jol]
2. Linux apache environment (nginx):
The copy code is as follows:
Location / {
Index index.html index.php
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
}
}
3. Windows iis pseudo-static (httpd.ini):
The copy code is as follows:
[isapi_rewrite]
# 3600 = 1 hour
Cacheclockrate 3600
Repeatlimit 32
# Chinese tag solution
Rewriterule / tag/ (. *) / index\ .php\? tag=$1
# sitemapxml
Rewriterule / sitemap.xml / sitemap.xml [l]
Rewriterule / favicon.ico / favicon.ico [l]
# content Page
Rewriterule / (. *) .html / index.php/$1.html [l]
# comments
Rewriterule / (. *) / comment / index.php/$1/comment [l]
# Classification Page
Rewriterule / category/ (. *) / index.php/category/$1 [l]
# pagination
Rewriterule / page/ (. *) / index.php/page/$1 [l]
# search page
Rewriterule / search/ (. *) / index.php/search/$1 [l]
# feed
Rewriterule / feed/ (. *) / index.php/feed/$1 [l]
# date Archive
Rewriterule / 2 (. *) / index.php/2 $1 [l]
# upload pictures, etc.
Rewriterule / action (. *) / index.php/action$1 [l]
After reading this, the article "what are the pseudo-static rules of Typecho procedures" has been introduced. If you want to master the knowledge of this article, you still need to practice and use it yourself to understand it. If you want to know more about related articles, you are welcome to follow 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.