"把重写规则放到另外文件里利于操作":随便一个文件都可以啊,只要读的出重写的规则就可以了web.config中设置:
如果你重写HttpModule,那么添加这个节点:
<httpModules name="" type="" />
如果你重写HttpHandler或者HttpHandlerFactory,那么添加这个节点:
<httpHandlers verb="" path="" type="" />
如果你重写HttpModule,那么添加这个节点:
<httpModules name="" type="" />
如果你重写HttpHandler或者HttpHandlerFactory,那么添加这个节点:
<httpHandlers verb="" path="" type="" />
如,<appSettings file="relative file name" ></appSettings>访问方式同一般的访问 appSetting 一样详细信息
http://msdn2.microsoft.com/zh-cn/library/ms228154(VS.80).aspx