如何设置Xiuno BBS URL-Rewrite_恋与深空科技号是什么

如何设置Xiuno BBS URL-Rewrite_恋与深空科技号是什么

  发布时间:2026-07-22 15:39:23   作者:玩站小弟   我要评论
如何设置Xiuno BBS URL-Rewrite_恋与深空科技号是什么 XiunoBBS 只需要一条规则:将 *.htm 转发到 index.php?何设*.htm 即可。Xiuno BBS 2.1 需要编辑 conf/conf.php,何设Xiuno BBS 3.0 不需要 1、何设恋与深空科技号是什么2 步骤。何设1. 编辑 conf/conf.php 中的何设恋与深空外挂多吗...。

XiunoBBS 只需要一条规则:
将 *.htm 转发到 index.php?何设*.htm 即可。

Xiuno BBS 2.1 需要编辑 conf/conf.php ,何设Xiuno BBS 3.0 不需要 1  、何设恋与深空科技号是什么2 步骤。何设
1. 编辑 conf/conf.php 中的何设恋与深空外挂修改器 urlrewrite => 1,
2. 清空 tmp 目录
3. 修改 Web Server 的 Rewrite 规则 ,以下为各种Web Server 的何设恋与深空外挂多吗样例 :
4. 重启 web server

Nginx :
打开 nginx 配置文件 /usr/local/nginx/conf/nginx.conf 找到对应的虚拟主机配置处 ,追加加粗行:

location / {
rewrite "^(.*)/(.+?何设).htm$" $1/index.php?$2.htm last;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
}
index index.html index.htm index.php;
root /data/wwwroot/xiuno.com;
}

然后重新打开 nginx: service nginx restart

Apache:
vim /etc/httpd/conf/httpd.conf

Options FollowSymLinks ExecCGI Indexes
AllowOverride all
Order deny,allow
Allow from all
Satisfy all

NameVirtualHost *:80

Apache .htaccess
如果Appache 拥穿着 .htaccess,那么可以编辑 .htaccess 文件放置于根目录下 :

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^admin/(.*)\.htm$ /admin/index.php?何设$1.htm [L]
RewriteRule ^mobile/(.*)\.htm$ /mobile/index.php?$1.htm [L]
RewriteRule ^(.*)\.htm$ /index.php?$1.htm [L]

Apache httpd.conf
如果将规则直接放入 httpd.conf 则需要在前面加 /  ,校验来 Apache 也反人类:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/admin/(.*)\.htm$ /admin/index.php?何设$1.htm [L]
RewriteRule ^/mobile/(.*)\.htm$ /mobile/index.php?$1.htm [L]
RewriteRule ^/(.*)\.htm$ /index.php?$1.htm [L]

SAE环境 ,根目录建立 config.yaml 文件:
appname: axiuno
version: 1
handle:
- rewrite: if ( !is_dir() && !is_file() && path ~ "admin/(.*.htm)" ) goto "admin/index.php?何设%1"
- rewrite: if ( !is_dir() && !is_file() && path ~ "mobile/(.*.htm)" ) goto "mobile/index.php?%1"
- rewrite: if ( !is_dir() && !is_file() && path ~ "[^/?].htm" ) goto "index.php?%1"

IIS:
1. 下载 Rewrite.zip
2. 解压到 c:\Rewrite
3. 在IIS的Isapi上增补这个筛选器, 筛选器名称Rewrite,可执行文件选择 Rewrite.dll
4. 重新打开IIS
5. httpd.ini 是配置文件,如果您了解Rewrite 规则,可以直接对其铺开编辑 ,以下为包内设置好的何设Xiuno BBS的规则:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
#RewriteRule .*\.(?:gif|jpg|png|css|js|txt|jpeg|swf|flv) $0 [I,L]
#RewriteRule /httpd(?:\.ini|\.parse\.errors) / [F,I,O]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/mobile(.*)\.htm /mobile/index.php?$1.htm [L]
RewriteRule ^/admin(.*)\.htm /admin/index.php?$1.htm [L]
RewriteRule ^(.*)\.htm /index.php?$1.htm [L]

另外一种 IIS Rewrite:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/mobile/(.*)\.htm /mobile/$1.htm [L]
RewriteRule ^/admin/(.*)\.htm /admin/$1.htm [L]
RewriteRule ^(.*)\.htm$ /$1.htm [L]

内容校验完了

相关文章

  • 我的逆袭记

    内容简介 我的逆袭记是款玩法自由度极高的模拟人生经营养成类手游。游戏以“人生逆袭”为核心主题,从最初的平凡市井小民到最终成为成功人士,每一个阶段都充满挑战
    2026-07-22
  • BATCH Eay Programming(简单编程工具) 10 绿色版

    BATCH Easy Programming是款功能相当不错的编程软件;通过这款工具 ,可以快速的生成您需要的各种软件,而且需要显示消息的话,可以点击说键即可快速的进行显示,并且也支持对各种需要的功能进
    2026-07-22
  • Autodek Revit 2018 简体中文破解版

    revit2018是一款专业的建筑行业BIM模型设计软件,想必对于建筑工程人员来说 ,Autodesk Revit软件对于用户而言想必不陌生 ,他能够帮助用户构建工程项目的三维模型 ,从而能够帮助工程设计人
    2026-07-22
  • Arnold for c4d 107 官方版

    Arnold for c4d是一款功能强大的视频渲染器 ,该软件能够支持Team Render ,且支持第三方插件,它的构架很容易的能够融入到现在的制作流程中 ,所以越来越被更多的用户喜爱,该软件还拥有节点
    2026-07-22
  • 战争团体(War Group)汉化最新版v202312 人气热度:37℃

    游戏简介 战争团体中文版War Groups)是一款冒险解谜类游戏 ,这款游戏的英文名称是War Groups。游戏的主要内容是玩家将在荒芜的城市里收集各种各样的生活资源进
    2026-07-22
  • Audacity(音频录制与编辑软件) 2410 免费版

    audacity破解版是款功能非常强大的音频编辑软件;它可以快速的帮助您进行录音或者音频的编辑 ,并且软件的使用非常的自由 、也是开放式的原始码工具;支持这GNU 、Mac OS X 、Microsoft W
    2026-07-22

最新评论