發布時間:2020-08-06 15:12 作者:獨孤劍 閱讀:756
Web.config
<system.webServer> <!--404--> <httpErrors errorMode="Custom" existingResponse="Replace"> <remove statusCode="404"/> <error statusCode="404" responseMode="ExecuteURL" path="/404.aspx"/> </httpErrors> </system.webServer>
<%@ Page Language="C#"%> <script runat="server"> /// <summary> /// 頁面載入 /// </summary> protected void Page_Load(object sender, EventArgs e) { Response.Status = "404 Not Found"; } </script> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>404 Not Found</title> </head> <body> 404 Not Found </body> </html>
微信打賞, 微信掃一掃
支付寶打賞, 支付寶掃一掃
如果文章對您有幫助,歡迎給作者打賞