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--
Unlike wp, the pseudo-static rules of Typecho programs are directly available by default and need to be manually loaded into space before they can take effect. The following Lao Zuo sorted out the pseudo-static rules of this program in different host environments, hoping to help everyone. Although Lao Zuo blog uses Wordpress program, I have to say that wp program is one of the very good programs, but the problem in terms of resource occupation is still relatively poor. If you have used the WP program to set up a blog, you should know that the average host CPU will exceed the standard or even be suspended when the number of visitors to the site reaches several hundred. Because the general mainframe product CPU is limited to 5-10%, it is easy to exceed the standard. Typecho blog program is developed by Chinese people, although it is not updated at present, but the function is basically perfect, the structure is similar to WORDPRESS, but it is much better than WP in terms of resource consumption. So Typecho users are still very large.
Unlike wp, the pseudo-static rules of Typecho programs are directly available by default and need to be manually loaded into space before they can take effect. The following Lao Zuo sorted out the pseudo-static rules of this program in different host environments, hoping to help you.
1. Linux Apache environment (.htaccess):
The copy code is as follows:
The following is in the root directory, 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 [Rong301 Magi L]
Jump without www to one with
RewriteCond% {HTTP_HOST} ^ laozuo.org
RewriteRule (. *) http://www.laozuo.org/$1 [Rong301 Magi L]
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; baby named http://www.bbqmw.net/qm_yeqm
}
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]
Comment
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 archiving
RewriteRule / 2 (. *) / index.php/2 $1 [L]
Upload pictures, etc.
RewriteRule / action (. *) / index.php/action$1 [L]
Because the left only has apache space, there is no problem with the test, and friends can test it in other environments.
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.