IIS服务器上伪静态的设置问题

selmy 环境搭建IIS服务器上伪静态的设置问题已关闭评论200阅读模式

在IIS服务器中Isapi上添加个筛选器,添加好了某个程序的ReWrite规则。

遇到问题如下

在网站根目录下安装程序discuz,在二级目录下安装杭州神话公司旗下产品记事狗

httpd.ini的规则如下:

1:假设记事狗安装的地址是www.selmy.org/jishigou 。
我配置的规则是

[ISAPI_Rewrite]

# 3600 = 1 hour

CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files

# from accessing through HTTP

RewriteRule ^[^.?]*$ /jishigou/index.php

出现的问题是:访问www.selmy.org也访问的是记事狗的博客。

以上更新时间为:2010年5月7日11:40:46

解决方案如下:

在网站根目录下上传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)-[0-9]+\.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
RewriteRule ^[^.?]*$ /jishigou/index.php

到此,问题解决。

作者:selmy
申明:本文由倚剑静听雨原创,转载请保留本站地址以及版权信息。

文章末尾固定信息
weinxin
我的微信
微信扫一扫
selmy
  • 本文由 发表于 2010年05月7日 11:40:52
  • 转载请务必保留本文链接:https://oldblog.t4x.org/2010/05/07/iisrewrite-jishigou-questions/