专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅

首页 »web服务器 » discuziisrewrite:Discuz!的IIS Rewrite设置 »正文

discuziisrewrite:Discuz!的IIS Rewrite设置

来源: 发布时间:星期四, 2009年1月15日 浏览:2次 评论:0
  安装Rewrite

  1.下载ISAPI_Rewrite.ISAPI_Rewrite 附件下载

  2.对筛选对应规则进行编写即httpd.ini 文件(在此编写规则不做讨论已经在附件中附带)

  3.打开Internet 信息服务,右键,web站点属性,点击ISAPI筛选器选项卡.添加筛选器,名称自己填路径自己指定ISAPI_Rewrite.dll,然后确定.

  4.重启iis服务器重启IISiisre命令

  httpd.ini内容

[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600


RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^(.*)/archiver/((fid|tid)-[w-]+.html)?*(.*)$ $1/archiver/index.php?$2&$4
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+).html?*(.*)$ $1/forumdisplay.php?fid=$2&page=$3&$4
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+).html?*(.*)$ $1/viewthread.php?tid=$2&extra=page%3D$4&page=$3&$4
RewriteRule ^(.*)/space-(username|uid)-(.+).html?*(.*)$ $1/space.php?$2=$3&$4
RewriteRule ^(.*)/tag-(.+).html?*(.*)$ $1/tag.php?name=$2&$3


  然后进入论坛系统设置搜索引擎优化根据需要开启 URL 静态化功能

相关文章

读者评论

  • 共0条 分0页

发表评论

  • 昵称:
  • 内容: