我看了http://www.cnblogs.com/xujiaci/archive/2006/09/19/508475.html已经和他一模一样了,但还是无法实现二级域名但是下面这个已经可以了,下面这个就是访问http://news.5ifs.com.cn/news/news.html实际访问http://www.5ifs.com.cn/news/Default.aspx
<LookFor>http://news.5ifs.com.cn/news/news.html</LookFor>
<SendTo>~/news/Default.aspx</SendTo>现在我想实现访问http://news.5ifs.com.cn/ 实际访问http://www.5ifs.com.cn/news/Default.aspx
怎么也不行,总是会跳到首页,我是这样写的
<LookFor>http://news.5ifs.com.cn</LookFor>
<SendTo>~/news/Default.aspx</SendTo>
如果在CN后面加上"/"还会报错,未将对象引用到对象的实例,这是怎么搞得啊
就是调到首页

解决方案 »

  1.   

    http://hi.baidu.com/ak456/blog/item/904c9402a998aa0b4bfb519c.html
      

  2.   

    http://hi.baidu.com/lecherline/blog/item/8f932ad1eea57ddb572c8489.html
      

  3.   

    我写成<LookFor>http://(d+).5ifs.com.cn/</LookFor> 
         <SendTo>/$1/Default.aspx</SendTo>
    还是没用啊,$1就是()里的内容,
    我访问http://news.5ifs.com.cn/
    实际请求http://www.5ifs.com.cn/news/Default.aspx啊
    但还是跳到了首页