N.EX.TµÄ¸èÇú,N.EX.TµÄÈÈßèÇú

ÅÅÐò£º °´ÈÈ¶È °´Ê±¼ä
N.EX.TµÄÁôÑÔ°å

 


ÔËÐÐʱ´íÎó

¡°/cc¡±Ó¦ÓóÌÐòÖеķþÎñÆ÷´íÎó¡£

ÔËÐÐʱ´íÎó

˵Ã÷: ·þÎñÆ÷ÉϳöÏÖÓ¦ÓóÌÐò´íÎó¡£´ËÓ¦ÓóÌÐòµÄµ±Ç°×Ô¶¨Òå´íÎóÉèÖýûÖ¹Ô¶³Ì²é¿´Ó¦ÓóÌÐò´íÎóµÄÏêϸÐÅÏ¢(³öÓÚ°²È«Ô­Òò)¡£µ«¿ÉÒÔͨ¹ýÔÚ±¾µØ·þÎñÆ÷¼ÆËã»úÉÏÔËÐеÄä¯ÀÀÆ÷²é¿´¡£

ÏêϸÐÅÏ¢: ÈôҪʹËûÈËÄܹ»ÔÚÔ¶³Ì¼ÆËã»úÉϲ鿴´ËÌض¨´íÎóÏûÏ¢µÄÏêϸÐÅÏ¢£¬ÇëÔÚλÓÚµ±Ç° Web Ó¦ÓóÌÐò¸ùĿ¼Ïµġ°web.config¡±ÅäÖÃÎļþÖд´½¨Ò»¸ö <customErrors> ±ê¼Ç¡£È»ºóÓ¦½«´Ë <customErrors> ±ê¼ÇµÄ¡°mode¡±ÌØÐÔÉèÖÃΪ¡°Off¡±¡£


<!-- Web.Config ÅäÖÃÎļþ -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>

×¢ÊÍ: ͨ¹ýÐÞ¸ÄÓ¦ÓóÌÐòµÄ <customErrors> ÅäÖñê¼ÇµÄ¡°defaultRedirect¡±ÌØÐÔ£¬Ê¹Ö®Ö¸Ïò×Ô¶¨Òå´íÎóÒ³µÄ URL£¬¿ÉÒÔÓÃ×Ô¶¨Òå´íÎóÒ³Ìæ»»Ëù¿´µ½µÄµ±Ç°´íÎóÒ³¡£


<!-- Web.Config ÅäÖÃÎļþ -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>