站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress设计Error 404页面
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
===其它错误码处理=== 本部分内容没有实际用途,无需掌握,仅供练习 尽可能多使用静态错误文档,这是因为要处理一张并不存在(404 Not Found)的图片,单个/missing.html文件比/index.php?error=404占用的CPU和容量都要少得多。 我们可以用下面的代码行来激活WordPress的404.php模板文件,让404.php同时处理其他服务器错误。 注意:有些服务器错误由WordPress处理,有些错误则输出静态.html文档,还有些错误是php脚本错误。例如,500错误不应由WordPress处理,因为500错误可能是由WordPress引发的(例如由一个有瑕疵的插件引发)。因此我们需要指导服务器输出有帮助价值的静态.html文档。 *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 503 /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
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)