伪静态配置
1、 Nginx 配置
打开 nginx 配置文件 /usr/local/nginx/conf/nginx.conf,在 server 块中添加以下配置:
location ~* \.(htm)$ {
rewrite "^(.*)/(.+?).htm(.*?)$" $1/index.php?$2.htm$3 last;
}2、 Xiuno BBS 配置
编辑 conf/conf.php 文件,找到以下配置项并修改:
找到
♾️ text 代码:'url_rewrite_on' => 0,改为
♾️ text 代码:'url_rewrite_on' => 1,数据库字段替换
1、内容数据替换
♾️ text 代码:UPDATE bbs_post SET message = REPLACE(message, 'ossd', 'os');
UPDATE bbs_post SET message_fmt = REPLACE(message_fmt, 'ossd', 'os');2、 打开全部侧边开关
♾️ text 代码:UPDATE bbs_thread SET side = 1;3、 封面网址替换
♾️ text 代码:UPDATE bbs_thread SET cover = REPLACE(`cover`, 'ossd', 'os');4、 封面网址清除
♾️ text 代码:UPDATE bbs_thread SET cover = '';5、 标题替换
♾️ text 代码:UPDATE bbs_thread SET subject = REPLACE(`subject`, '01', '02');