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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[其他] 阿里云服务器DZ3.0中nginx的伪静态代码

[复制链接]
海点物流 发表于 2013-8-24 17:49:41 | 显示全部楼层 |阅读模式
rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;
rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 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 last;
if (!-e $request_filename) {
rewrite ^([^\.]*)/([a-z]+)-(.+)\.html$ $1/$2.php?rewrite=$3 last;
}
if (!-e $request_filename) {
    return 404;
}
xcper 发表于 2013-8-25 11:44:20 | 显示全部楼层
求目录化的nginx伪静态
回复

使用道具 举报

teway 发表于 2013-10-4 11:33:54 | 显示全部楼层
同求,目前模式不利于搜索
回复

使用道具 举报

crx349 发表于 2013-10-4 12:59:06 | 显示全部楼层
感谢分享 用 后台 全局 seo设置 查看当前Rewrite规则 就可以看到了
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-3 17:11 , Processed in 0.143989 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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