woowenlee 发表于 2010-1-23 22:40:02

求救,关于企业2级域名冲突

我服务器上原来的网站用了一个伪静态规则

现在用DESTOON把企业设为二级域名,其他页面正常,唯独企业新闻中心无法正常显示

原网站规则是

RewriteRule /company-(*).html /plus/stock\.php\?code=$1
RewriteRule /company/(*)/(*).html /plus/$1\.php\?code=$2
RewriteRule /guba/(*).html /plus/guba\.php\?code=$1
RewriteRule /guba/(*)-(*).html /plus/guba\.php\?code=$1&ftype=$2
RewriteRule /(*)/(*)/(*)-(*)-(*)/(*).html /plus/view\.php\?aid=$6
RewriteRule /News/(*)/(*)/(*)-(*)-(*)/(*).html /plus/view\.php\?aid=$6
RewriteRule /Video/(*)/(*)/(*)-(*)-(*)/(*).html /plus/view\.php\?aid=$6
RewriteRule /company-(*)-(*).html /$1\.php\?code=$2

新加DESTOON规则是

RewriteRule ^(.*)-htm-(.*)$ $1\.php\?$2
RewriteRule ^(.*)/show-(+)([\-])?(+)?\.html$ $1/show\.php\?itemid=$2&page=$4
RewriteRule ^(.*)/list-(+)([\-])?(+)?\.html$ $1/list\.php\?catid=$2&page=$4
RewriteRule ^(.*)/show/(+)/(+)?([/])?$ $1/show\.php\?itemid=$2&page=$3
RewriteRule ^(.*)/list/(+)/(+)?([/])?$ $1/list\.php\?catid=$2&page=$3
RewriteRule ^(.*)/(+)\.co/(.*)$ $1/company/index\.php\?homepage=$2&rewrite=$3
RewriteRule ^(.*)/htm/(.*)$ $1/index\.php\?&rewrite=$2

按论坛的方法IIS默认网站绑定了COMPANY目录,主机头为空。麻烦给看下哪里有冲突?如何修改?

woowenlee 发表于 2010-1-25 09:52:28


没有会的吗?版主有空帮我看下啦,或者可不可以把这个企业新闻栏目关掉?

guoyunda 发表于 2010-11-6 09:03:34


类似企业新闻不显示的问题我也遇到过,已经解决了。不知道和楼主说的是否是同一个问题。
楼主在新建的空主机头绑定至company以使用二级域名的iis站点时,切记要在isapi筛选中添加rewrite规则。
总之就是:主域名和空主机头的域名,这两个都要添加isapi筛选器中的规则。

[ 本帖最后由 guoyunda 于 2010-11-6 09:26 编辑 ]
页: [1]
查看完整版本: 求救,关于企业2级域名冲突