我想实现以下功能:
用户可以自定义网址 : http:\\www.haohao.com\MyWeb
将来网址要定义到: http:\\www.haohao.com\default.aspx我在IIS中筛选器引用了微软的ISAPI_Rewrite 的dll.
在httpd.ini 中:我写的规则如下:[ISAPI_Rewrite]# 3600 = 1 hour
CacheClockRate 3600RepeatLimit 32# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTPRewriteRule ^MyWeb /default\.aspx可就是每次都不成功.一是:可以跳转过去,但是页面的css路径不正确.或者就是找不到页面.
请各位大侠帮忙.
用户可以自定义网址 : http:\\www.haohao.com\MyWeb
将来网址要定义到: http:\\www.haohao.com\default.aspx我在IIS中筛选器引用了微软的ISAPI_Rewrite 的dll.
在httpd.ini 中:我写的规则如下:[ISAPI_Rewrite]# 3600 = 1 hour
CacheClockRate 3600RepeatLimit 32# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTPRewriteRule ^MyWeb /default\.aspx可就是每次都不成功.一是:可以跳转过去,但是页面的css路径不正确.或者就是找不到页面.
请各位大侠帮忙.
css路径要写绝对的如"~/.................."
详细参见Scott的这篇文章里的Handling CSS and Image Reference Correctly。