Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] phpwind8.7转换成功X2.5 保持原伪静态链接

[复制链接]
uconny 发表于 2012-4-9 07:54:27 | 显示全部楼层 |阅读模式
http://www.86dianzi.com/

保持原伪静态链接nginx规则如下:
rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;
rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
rewrite ^([^\.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;
rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;
rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3&do=index last;
rewrite ^([^\.]*)/blog-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last;
rewrite ^([^\.]*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?action=$2&value=$3 last;
rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;
rewrite ^([^\.]*)/thread-htm-fid-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2 last;
rewrite ^([^\.]*)/thread-htm-fid-([0-9]+)-page-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
rewrite ^([^\.]*)/read-htm-tid-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2 last;
rewrite ^([^\.]*)/read-htm-tid-([0-9]+)-page-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&page=$3 last;
rewrite ^([^\.]*)/simple/t([0-9]+\.html)$ $1/archiver/index.php?action=tid&value=$2 last;
rewrite ^([^\.]*)/simple/f([0-9]+\.html)$ $1/archiver/index.php?action=fid&value=$2 last;
rewrite ^([^\.]*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ $1/plugin.php?id=$2:$3 last;
如有什么问题大家可以指出
推荐一下我用的空间http://www.52vhost.com/
12153556 发表于 2012-4-9 10:56:31 | 显示全部楼层
不错

值得推荐

收藏一下
回复

使用道具 举报

web990 发表于 2012-4-10 12:27:57 | 显示全部楼层
收藏啦,感谢分享
回复

使用道具 举报

水无涯 发表于 2012-4-10 16:26:35 | 显示全部楼层
怎么转的,使用专用的吗?还是通用的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-4-26 20:00 , Processed in 0.183459 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表