天空小小岛技术论坛

 找回密码
 注册
搜索
查看: 10925|回复: 0

[使用] Apache 虚拟主机下 Discuz!X Rewrite规则

[复制链接]
云天一 发表于 2010-4-30 22:22:14 | 显示全部楼层 |阅读模式
  1. RewriteEngine On
  2. RewriteBase /
  3. RewriteRule ^(.*/)*topic-(.+)\.html$ $1portal.php?mod=topic&topic=$2
  4. RewriteRule ^(.*/)*article-([0-9]+)\.html$ $1portal.php?mod=article&articleid=$2
  5. RewriteRule ^(.*/)*forum-(\w+)-([0-9]+)\.html$ $1forum.php?mod=forumdisplay&fid=$2&page=$3
  6. RewriteRule ^(.*/)*thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1forum.php?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3
  7. RewriteRule ^(.*/)*group-([0-9]+)-([0-9]+)\.html$ $1forum.php?mod=group&fid=$2&page=$3
  8. RewriteRule ^(.*/)*space-(username|uid)-(.+)\.html$ $1home.php?mod=space&$2=$3
  9. RewriteRule ^(.*/)*([a-z]+)-(.+)\.html$ $1$2.php?rewrite=$3
复制代码
将以上规则保存成.htaccess

.htaccess

625 Bytes, 下载次数: 58, 下载积分: 活力 -1 点

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

本版积分规则

小黑屋|手机版|Archiver|天空小小岛  |京ICP备17043412号-1|

GMT+8, 2023-3-26 17:42 , Processed in 0.083988 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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