Typecho is an excellent blog system developed by Chinese developers. Its code is concise, and it is simple and user-friendly. Recently, there was also a project built with Typecho. Naturally, I began exploring this system, and the biggest issue was still the pseudo-static configuration. The official site did not provide pseudo-static rules for IIS and Nginx, so I had to spend a long time searching for information and testing compatibility. Fortunately, after all that work, I still gained something. Below, I will post the pseudo-static rules for setting up Typecho on various Web servers, saving everyone the trouble of searching for them.

Apache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>
Nginx
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}
IIS
[ISAPI_Rewrite]
CacheClockRate 3600
RepeatLimit 32
RewriteRule /tag/(.*) /index\.php\?tag=$1
RewriteRule /sitemap.xml /sitemap.xml [L]
RewriteRule /favicon.ico /favicon.ico [L]
RewriteRule /(.*).html /index.php/$1.html [L]
RewriteRule /(.*)/comment /index.php/$1/comment [L]
RewriteRule /category/(.*) /index.php/category/$1 [L]
RewriteRule /page/(.*) /index.php/page/$1 [L]
RewriteRule /search/(.*) /index.php/search/$1 [L]
RewriteRule /feed/(.*) /index.php/feed/$1 [L]
RewriteRule /2(.*) /index.php/2$1 [L]
RewriteRule /action(.*) /index.php/action$1 [L]
The rules were written based on the official version 1.1. If you encounter any problems, please leave a comment below.