站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:Creating an Error 404 Page
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
===Additional Error Code Handling=== *Mental Excercise for the most part you don't need this* Please try to use as many static errordocuments as you can, as a single <tt>/missing.html</tt> file being server for a missing image (404 Not Found) would take up incredibly less CPU and Memory than having it processed by <tt>/index.php?error=404</tt> To enable your WordPress 404.php template file to handle additional server errors, you can use something like this in your <tt>.htaccess</tt> file. Notice how some errors are handled by WordPress, while other errors output a static .html document, and a few are actual php scripts. For instance, a 500 error would not be suitable to be handled by WordPress, as the 500 error could be occuring due to WordPress, like a bad plugin. So by instructing your server to instead serve a static .html document you can display a much more helpful error message to your visitors. <pre> ErrorDocument 400 /cgi-bin/error-deal.php ErrorDocument 402 /cgi-bin/error-deal.php ErrorDocument 403 /error/403/index.html ErrorDocument 404 /index.php?error=404 ErrorDocument 405 /error/405/index.php ErrorDocument 406 /index.php?error=406 ErrorDocument 407 /index.php?error=407 ErrorDocument 408 /index.php?error=408 ErrorDocument 409 /index.php?error=409 ErrorDocument 410 /index.php?error=410 ErrorDocument 411 /index.php?error=411 ErrorDocument 412 /index.php?error=412 ErrorDocument 413 /index.php?error=413 ErrorDocument 414 /index.php?error=414 ErrorDocument 415 /index.php?error=415 ErrorDocument 416 /index.php?error=416 ErrorDocument 417 /index.php?error=417 ErrorDocument 418 /index.php?error=418 ErrorDocument 419 /index.php?error=419 ErrorDocument 420 /index.php?error=420 ErrorDocument 421 /index.php?error=421 ErrorDocument 422 /index.php?error=422 ErrorDocument 423 /index.php?error=423 ErrorDocument 424 /index.php?error=424 ErrorDocument 425 /index.php?error=425 ErrorDocument 426 /index.php?error=426 ErrorDocument 500 /error/503/index.html ErrorDocument 501 /index.php?error=501 ErrorDocument 502 /index.php?error=502 ErrorDocument 500 /error/503/index.html ErrorDocument 504 /index.php?error=504 ErrorDocument 505 /index.php?error=505 ErrorDocument 506 /index.php?error=506 ErrorDocument 507 /index.php?error=507 ErrorDocument 508 /index.php?error=508 ErrorDocument 509 /index.php?error=509 ErrorDocument 510 /index.php?error=510 </pre>
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)