#12006/8/31 10:26:26
我想知道在web.config中,如何写是代表项目的根目录啊,要用相对路径的方式写,
因为不知道项目的虚拟路径。
比如说
<customErrors mode="RemoteOnly" defaultRedirect="error">
<!--NoAccess-->
<error statusCode="403" redirect="error"/>
<!--FileNotFound-->
<error statusCode="404" redirect="error"/>
</customErrors>
我想配置defaultRedirect="error"成为defaultRedirect="项目根目录/error"
不知道能不能实现啊?
谢谢了