惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - Franky
N
Netflix TechBlog - Medium
宝玉的分享
宝玉的分享
Google DeepMind News
Google DeepMind News
腾讯CDC
G
Google Developers Blog
Martin Fowler
Martin Fowler
Microsoft Security Blog
Microsoft Security Blog
Recent Announcements
Recent Announcements
爱范儿
爱范儿
Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog
A
About on SuperTechFans
aimingoo的专栏
aimingoo的专栏
有赞技术团队
有赞技术团队
Jina AI
Jina AI
人人都是产品经理
人人都是产品经理
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
M
MIT News - Artificial intelligence
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
美团技术团队
WordPress大学
WordPress大学
阮一峰的网络日志
阮一峰的网络日志

博客园 - 活靶子.Net

2008我的收获了3个本儿,一堆朋友 把ASP.NET MVC的路由利用配置维护起来 jQuery从此更牛了 【分享】如何创建自己的Visual Studio 2005/2008配色 我学Linq to SQL做的demo Latest preview of the ASP.Net MVC available on CodePlex 提供我现用的Vs配色(灰黑色调)下载,有兴趣的朋友玩玩。 使用AzMan找不到Microsoft.Interop.Security.AzRoles的解决方法 MS Ajax 客户端生命周期 使用dotNetZipLib轻松压缩目录/文件夹 批量 移动 msn 联系人 IE8 BETA1 来了.... Telligent 发布了 CMS 系统 DbEntry.Net---又一个国产开源ORM数据访问及 WEB 框架 [2007最后一博]Url地址重写,利用HttpHander手工编译页面并按需生成静态HTML文件 FckEditor,远程图片下载,插件 上班族饮食十大“夺命”恶习 一系列SQL SERVER SQL 的分析文章 员工辞职的十大原因!
CustomError可以设置绝对路径
活靶子.Net · 2008-04-23 · via 博客园 - 活靶子.Net

偶然发现web.config内自定义错误信息页面
  <customErrors mode="RemoteOnly"     defaultRedirect="503.aspx">
   <error statusCode="404" redirect="404.aspx"/>
  </customErrors>

可以设置成
  <customErrors mode="RemoteOnly"     defaultRedirect="503.aspx">
   <error statusCode="404" redirect="http://www.aspxboy.com/404.aspx"/>
  </customErrors>
这样的绝对路径.
看了一下 CustomErrorsSection 中的代码

internal string GetRedirectString(int code)
{
    
string absoluteRedirect = null;
    
if (this.Errors != null)
    
{
        CustomError error 
= this.Errors[code.ToString(CultureInfo.InvariantCulture)];
        
if (error != null)
        
{
            absoluteRedirect 
= GetAbsoluteRedirect(error.Redirect, this.basepath);
        }

    }

    
if (absoluteRedirect == null)
    
{
        absoluteRedirect 
= this.DefaultAbsolutePath;
    }

    
return absoluteRedirect;
}

发现事实如此.
期间有个小笑话,我试验的时候顺手输入了个http://x x.com/404.aspx (两个xx中没空格)这样到一个页面跳入了一个xx站点,吓我一大跳. ,工位附近有MM,不知道有否影响本人正值地形象哦