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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[其他] Windows Server 2008 R2 + IIS 7.5 Discuz X1.5 Rewrite 伪静态规则分享

[复制链接]
szboy 发表于 2011-4-22 23:32:44 | 显示全部楼层 |阅读模式
不能保证每个人都能用……
我是基于自己的服务器配置的,发这个帖子也是给自己记录一下。

Windows Server 2008 R2
IIS 7.5
Discuz X1.5
  1. RewriteEngine On

  2. RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1
  3. RewriteRule ^article-([0-9]+)\.html$ portal.php?mod=article&articleid=$1
  4. RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2
  5. RewriteRule ^(.*/)*thread-([0-9]+)-([0-9]+)-([0-9]+).html\?*(.*)$ {R:1}/forum.php\?mod=viewthread&tid={R:2}&extra=page\%3D{R:4}&page={R:3}&{R:5}
  6. RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2
  7. RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2
  8. RewriteRule ^([a-z]+)-(.+)\.html$ $1.php?rewrite=$2
复制代码
zhouhuan18 发表于 2011-4-30 21:30:01 | 显示全部楼层
Rewrite 新版本用不了
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-22 23:25 , Processed in 0.141232 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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