对于网络推广来说,一个网站的SEO起到了很大作用,而如果网站经常出现404页面,无疑对网络推广起到了很大的负面作用。今天借鉴了404.cn的代码,但也改了点,做了一个不错的404页面,分享给大家,css是潜在文档内部的,风格比较合适个人博客。
[codes=html]<!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” lang=”zh-cn”> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ /> <meta http-equiv=”Content-Language” content=”UTF-8″ /> <meta content=”all” name=”robots” /> <meta name=”author” content=”0cai” /> <meta http-equiv=refresh content=’4;url=http://www.0cai.net/index.html’> <meta name=”keywords” content=”0cai博客” /> <TITLE>Page not found – 您访问的页面已删除或根本不存在</TITLE> <style type=”text/css”> <!–body,td,th { font-family: Georgia, Times New Roman, Times, serif; font-size: 14px; color: #0033CC; font-weight: bold; } body { background-color: #000000; } a:link { text-decoration: none; color: #FF0000; } a:visited { text-decoration: none; } a:hover { text-decoration: underline; color: #CC0000; } a:active { text-decoration: none; } #wrapper { float: left; width: 600px; border: medium solid #FF0000; position: relative; left: 200px; top: 20px; } #wrapper #innerWrapper #attention { color: #FF0000; } –> </style> </HEAD> <BODY> <div id=”wrapper”> <div id=”innerWrapper”> <h1>说多少次了该页无法显示!!!</h1> <p> 您正在查看的网页<span id=”attention”>根本没有</span>删除、更名或暂时不可用。<br /> 本网站不支持 Microhard 的浏览器,现在不支持今后也不支持!<br /> 永远都别想支持!不支持呀不支持! </p> <hr /> <p> 请尝试下列操作: <ul> <li>如果您在浏览器的地址栏中键入了网页地址,请检查其拼写是否正确。</li> <li>无论怎么检查拼写,您访问到的还是这一页。 </li> <li>打开 <a href=”/index.php”>blog</a> 主页,寻找指向所需信息的链接。 </li> <li>单击<a href=”/index.php”>后退</a>按钮尝试其他链接。</li> <li>单击<a href=”/liuyan”>给0cai留言</a>按钮尝试其他链接。</li> <li>对您的主板进行清洗,最好选择<span id=”attention”>84消毒水</span>,只需8块9毛9。</li> </ul> HTTP $#@!^%& – <a href=”/”>纯属0cai的玩笑</a><br /> Microhard Opera 2007 Professional </p> <hr /> <p> 技术信息(0cai) </p> <ul> <li>详细信息:网站管理员秀逗或者您的人品出现了问题。</li> <li>相信是您人品问题的点右上角的<span id=”attention”> X </span>。</li> <li>确认是管理员秀逗的点击<a href=”index.php”>这里</a>。</li> </ul> </div> </div> </BODY></HTML> [/codes]