XiunoBBS 只需要一条规则:
将 .htm 转发到 index.php?.htm 即可。
Xiuno BBS 4.0 需要编辑 conf/conf.php
编辑 'url_rewrite_on'=>1,
Nginx伪静态规则:
location ~* \.(htm)$ {
rewrite "^(.*)/(.+?).htm(.*?)$" $1/index.php?$2.htm$3 last;
}
保存后记得重启ng
Apache.htaccess伪静态规则: .htaccess 文件放置于根目录下
<IfModule mod_rewrite.c>
RewriteEngine on
# Apache 2.4
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*?)([^/]*)$ $1index.php?$2 [QSA,PT,L]
# Apache other
#RewriteRule ^(.*?)([^/]*)\.htm(.*)$ $1/index.php?$2.htm$3 [L]
</IfModule>
🗨️ 评论区