{"id":870,"date":"2005-09-17T23:35:17","date_gmt":"2005-09-17T15:35:17","guid":{"rendered":"http:\/\/blog.planism.com\/?p=870"},"modified":"2005-09-17T23:35:17","modified_gmt":"2005-09-17T15:35:17","slug":"error-pages","status":"publish","type":"post","link":"https:\/\/produsir.synology.me\/wordpress\/2005\/09\/17\/870\/","title":{"rendered":"Error 404 Page&#8230;"},"content":{"rendered":"<p>\u642c\u5230 DreamHost \u4e4b\u5f8c\uff0c\u7531\u65bc\u6211\u6709\u8b8a\u66f4 blog \u6587\u7ae0\u7684 archive(\u5c01\u5b58\u8cc7\u6599)  \u7db2\u5740\u683c\u5f0f \u3002<br \/>\n\u5c0e\u81f4\u4e4b\u524d\u88ab\u641c\u5c0b\u5f15\u64ce\u6252\u8d70\u7684\u9801\u9762\uff0c\u6216\u662f\u5176\u4ed6 blogger \u9023\u7d50\u6211\u6587\u7ae0\uff0c<br \/>\n\u5c31\u7d71\u7d71\u8b8a\u6210\u300c\u7121\u6cd5\u986f\u793a\u7db2\u9801\u300d\u7684\u3000error 404  (\u627e\u4e0d\u5230)  \u7684\u8a0a\u606f\u3002<\/p>\n<p>\u6211\u7167\u8457\u865b\u64ec\u4e3b\u6a5f\u7684\u8aaa\u660e\uff0c\u505a\u4e86\u81ea\u88fd\u5316\u7684 404 \u9801\u9762\uff0c\u4f46\u662f\u4e00\u76f4\u4e0d\u751f\u6548\uff0c\u5f88\u5e79\u3002<br \/>\n\u6628\u665a\uff0c\u6211\u53c8\u7528\u4e86\u9032\u968e\u7684\u65b9\u5f0f\uff0c\u6539\u4e86 .htaccess \u7684\u8a2d\u5b9a\uff0c\u4f46\u9084\u662f\u4e0d\u751f\u6548\uff0c\u66f4\u5e79\uff01<br \/>\n\u4e0a\u7db2\u7528 Google \u627e\u4e86\u4e00\u4e0b\uff0c\u6211\u7d42\u65bc\u627e\u5230\u4e0d\u751f\u6548\u7684\u539f\u56e0\uff1a<\/p>\n<blockquote>\n<p><strong>Force Internet Explorer to Display Your Custom 404<\/strong><\/p>\n<p>As you may know, Internet Explorer versions 5 and greater have their own 'friendly' error messages built in, so that you don't have to look at the ugly standard 404. However, some people who have designed their own custom 404s have found that IE is still ignoring their page and displaying its own message, which is likely not quite as helpful as the custom error. Silly Microsoft, always trying to do our thinking for us. Here's how to get around it - and it's simple!<\/p>\n<p>IE looks at the size of the 404 page to decide whether to display its own error. All you have to do is make sure that the size of your file is greater than 512 bytes. This does not include graphics, so make sure you add enough text to accomplish this. (If you just need filler text, add a bunch of nonsense text in comments in the source code.)<\/p>\n<\/blockquote>\n<p>\u5927\u610f\u662f\u8aaa\uff0cIE 5 \u4ee5\u4e0a\u7684\u7248\u672c\uff0c\u6703\u5f88\u300c\u53cb\u5584\u5730\u300d\u76f4\u63a5\u9810\u8a2d\u7528 IE \u81ea\u5df1\u7684 404 \u9801\u9762\uff0c\u771f\u4ed6 x \u7684\u8ce4\uff01<br \/>\n\u7834\u89e3\u7684\u65b9\u6cd5\uff0c\u5c31\u662f\u628a\u4f60\u7684 404 \u9801\u9762 k \u6578\u5f04\u5f97\u8d85\u904e 512 bytes\uff0c\u5c31\u6703\u8b93 IE \u700f\u89bd\u5668\u63a5\u53d7\u4f60\u7684\u5ba2\u88fd\u5316\u9801\u9762\u56c9\uff01<\/p>\n<p>\u6e2c\u8a66 \"error 404 page\":http:\/\/blog.planism.com\/123.html<\/p>\n<p>\u25a0 \u5ef6\u4f38\u95b1\u8b80\uff1a<\/p>\n<p>* 401 failed authorization<br \/>\n* 403 forbidden<br \/>\n* 404 missing file<br \/>\n* 500 internal server error<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u642c\u5230 DreamHost \u4e4b\u5f8c\uff0c\u7531\u65bc\u6211\u6709\u8b8a\u66f4 blog \u6587\u7ae0\u7684 archive(\u5c01\u5b58\u8cc7\u6599) \u7db2\u5740\u683c\u5f0f \u3002 \u5c0e\u81f4 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/produsir.synology.me\/wordpress\/2005\/09\/17\/870\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008Error 404 Page&#8230;\u3009<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/produsir.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/870"}],"collection":[{"href":"https:\/\/produsir.synology.me\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/produsir.synology.me\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/produsir.synology.me\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/produsir.synology.me\/wordpress\/wp-json\/wp\/v2\/comments?post=870"}],"version-history":[{"count":0,"href":"https:\/\/produsir.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/870\/revisions"}],"wp:attachment":[{"href":"https:\/\/produsir.synology.me\/wordpress\/wp-json\/wp\/v2\/media?parent=870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/produsir.synology.me\/wordpress\/wp-json\/wp\/v2\/categories?post=870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/produsir.synology.me\/wordpress\/wp-json\/wp\/v2\/tags?post=870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}