天空小小岛技术论坛

 找回密码
 注册
搜索
天空小小岛技术论坛 门户 查看主题

Apache 虚拟主机下 Discuz!X Rewrite规则

发布者: 云天一 | 发布时间: 2010-4-30 22:22| 查看数: 7250| 评论数: 0|帖子模式

  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, 2018-11-21 12:09 , Processed in 0.156162 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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