自定义出错页面

| |
| 不指定 September 2, 2006 @ 13:38, Robin Hoo
在上传文件时,看到服务器上有个文件夹命名为error_docs里面放的是主要的网络浏览出错页面。由于是服务商提供的免费页面,很丑陋。于是自己定义了出错页面,并结合blog搜索功能。鉴于自己有多个域名,还需要结合.htaccess文件配置。下面是测试链接和相关信息。

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


出错页面shtml文件下载

文章来自: 本站原创
0 comment(s)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]
               

验证码 不区分大小写