}
}
}
那么我们是否还差些什么? 是的,还差个配置文件的配置。需要修改web.config文件几处处所,代码如:
<!--请求法则-->
<httpModules>
<add name="BianminModuleRewriter"type="Bianmin.URLRewriter.ModuleRewriter,Bianmin.URLRewriter" />
</httpModules>
<system.webServer>
<handlers><add name="aspnet_isapi" path="*" verb="*" modules="IsapiModule" script Processor="C:WindowsMicrosoft Framework64v4.0.30319aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv4.0,bitness64" /></handlers>
<defaultDocument>
<files>
<clear />
<add value="default.aspx" />
</files>
</defaultDocument>
</system.webServer>
注意:当您使用framewore 2..0需要更改aspnet_isapi.dll文件路径
源代码下载地址:http://download.naoqiu 下载