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 则需要在前面加 / ,追加加粗行:
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 *:80Apache .htaccess
如果Appache 支持 .htaccess ,Xiuno BBS 3.0 不需要 1、何设欢乐斗地主外挂作弊器电脑版以下为各种Web Server 的何设样例 :
4. 重启 web serverNginx:
打开 nginx 配置文件 /usr/local/nginx/conf/nginx.conf 找到对应的虚拟主机配置处,以下为包内设置好的何设欢乐斗地主2.26.0.5版本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] 内容看完了 看来 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环境