在上传文件时,看到服务器上有个文件夹命名为error_docs里面放的是主要的网络浏览出错页面。由于是服务商提供的免费页面,很丑陋。于是自己定义了出错页面,并结合blog搜索功能。鉴于自己有多个域名,还需要结合.htaccess文件配置。下面是测试链接和相关信息。
HTTP 403 File Forbidden
HTTP 404 File Not Found
.htaccess增加的配置:(注意:其中的路径名不可和系统默认使用的路径同名)
出错页面shtml文件下载
HTTP 403 File Forbidden
HTTP 404 File Not Found
.htaccess增加的配置:(注意:其中的路径名不可和系统默认使用的路径同名)
ErrorDocument 400 /errors/bad_request.shtml
ErrorDocument 401 /errors/unauthorized.shtml
ErrorDocument 403 /errors/forbidden.shtml
ErrorDocument 404 /errors/not_found.shtml
ErrorDocument 500 /errors/internal_server_error.shtml
ErrorDocument 401 /errors/unauthorized.shtml
ErrorDocument 403 /errors/forbidden.shtml
ErrorDocument 404 /errors/not_found.shtml
ErrorDocument 500 /errors/internal_server_error.shtml
出错页面shtml文件下载
上一篇:
GoogleAdSense完美插件
GoogleAdSense完美插件0 comment(s)



September 2, 2006 @ 13:38,
文章来自: 本站原创
Tags:
BO-BLOG 2.0.2 Music BOX插件

