|
1 | 1 |       |
2 | 2 |
|
3 | | - |
4 | | - |
5 | 3 | # 404pages : HTTP Status 404 – Not Found |
6 | 4 |
|
7 | 5 |  |
8 | 6 |
|
| 7 | +## 介绍 |
9 | 8 |
|
| 9 | +1. 该项目收集了几个404的页面模板,可用于替换原生的404页面。我这里只是进行整理,部分来自网络,部分来自其他项目。 |
10 | 10 |
|
11 | | -## 介绍: |
12 | | - |
13 | | - 1. 该项目收集了几个404的页面模板,可用于替换原生的404页面。我这里只是进行整理,部分来自网络,部分来自其他项目。 |
14 | | - |
15 | | - 2. 自定义一个404页面好像并不难,难的是如何让”状态码为404的请求“都转向我们自定义的404页面,关于这个问题可参考我转发的一篇博客:[三种思路实现自定义404页面](https://blog.csdn.net/weixin_41287260/article/details/96030104),我这里用的是第三种:利用web容器提供的error-page标签,在`web.xml`中添加<error-page>标签即可实现,如下所示: |
| 11 | +2. 自定义一个404页面好像并不难,难的是如何让”状态码为404的请求“都转向我们自定义的404页面,关于这个问题可参考我转发的一篇博客:[三种思路实现自定义404页面](https://blog.csdn.net/weixin_41287260/article/details/96030104),我这里用的是第三种:利用web容器提供的error-page标签,在`web.xml`中添加<error-page>标签即可实现,如下所示: |
16 | 12 |
|
17 | 13 | ```xml |
18 | 14 | <error-page> |
|
21 | 17 | </error-page> |
22 | 18 | ``` |
23 | 19 |
|
24 | | - 3. 我已将每个404页面独立开来,并将他们整理到一个个二级文件夹。这样<font color="red">如果有需要,直接复制对应文件夹即可</font>;当然你也可以进行修改,对其进行个性化设置,可参考:[修改建议](https://github.com/yansheng836/404pages/blob/master/docs/change-advice.md)。 |
| 20 | +3. 我已将每个404页面独立开来,并将他们整理到一个个二级文件夹。这样<font color="red">如果有需要,直接复制对应文件夹即可</font>;当然你也可以进行修改,对其进行个性化设置,可参考:[修改建议](https://github.com/yansheng836/404pages/blob/master/docs/change-advice.md)。 |
25 | 21 |
|
26 | | - |
27 | | - |
28 | | -## 404页面分类: |
| 22 | +## 404页面分类 |
29 | 23 |
|
30 | 24 | 具体效果到 [github pages](https://www.yansheng.xyz/404pages/) 查看,下面是简单介绍。 |
31 | 25 |
|
|
46 | 40 |
|
47 | 41 | - 吾爱破解社区-《圈小猫》 |
48 | 42 | - 404小游戏2:google-酷跑(暂未添加) |
49 | | - |
50 | 43 |
|
51 | | - |
52 | | - |
53 | | -## 补充内容: |
| 44 | +## 补充内容 |
54 | 45 |
|
55 | 46 | 1. 应用js的三种方式。 |
56 | 47 | 2. 使超链接失效的方法。 |
57 | 48 | 3. 实现跳转到上一页的方法。 |
58 | 49 |
|
59 | | - |
60 | | - |
61 | | -## 致谢: |
| 50 | +## 致谢 |
62 | 51 |
|
63 | 52 | 1. [i7素材网](http://www.17sucai.com):部分404页面来自该网站。 |
64 | | - |
65 | | -2. [吾爱破解社区](https://www.52pojie.cn):我当时想自定义404页面就是受《圈小猫》游戏的影响,我的项目中的此部分内容转载自:吾爱破解社区在github上的开源项目:[phaser-catch-the-cat](https://github.com/ganlvtech/phaser-catch-the-cat),游戏试玩地址:[https://ganlvtech.github.io/phaser-catch-the-cat/](https://ganlvtech.github.io/phaser-catch-the-cat/)。 |
66 | | - |
67 | | - 该项目使用一个游戏引擎写的,有兴趣可到官网了解:https://phaser.io/。 |
68 | | - |
69 | | - |
| 53 | +2. [吾爱破解社区](https://www.52pojie.cn):我当时想自定义404页面就是受《圈小猫》游戏的影响,我的项目中的此部分内容转载自:吾爱破解社区在github上的开源项目:[phaser-catch-the-cat](https://github.com/ganlvtech/phaser-catch-the-cat),游戏试玩地址:<https://ganlvtech.github.io/phaser-catch-the-cat/> 。 |
| 54 | +该项目使用一个游戏引擎写的,有兴趣可到官网了解:<https://phaser.io/> 。 |
70 | 55 |
|
71 | 56 | ## 声明 |
72 | 57 |
|
73 | | -- 本项目仅用于学习交流使用,大部分网页源自网络,所有权归原作者所有,如涉及侵权,请联系我进行删除。 |
74 | | - |
| 58 | +本项目仅用于学习交流使用,大部分网页源自网络,所有权归原作者所有,如涉及侵权,请联系我进行删除。 |
75 | 59 |
|
76 | | - |
77 | | -## 我的环境: |
| 60 | +## 我的环境 |
78 | 61 |
|
79 | 62 | myeclipse10.7, jdk1.8, Tomcat7.0 |
80 | 63 |
|
| 64 | +## 构建(使用) |
81 | 65 |
|
82 | | - |
83 | | -## 构建(使用): |
84 | | - |
85 | | -1.克隆项目到本地:git clone https://github.com/yansheng836/404pages.git |
86 | | - |
87 | | -2.1利用IDE(因为后期考虑添加另外两种访问404的方法):导入(my)eclipse,调整相关环境,部署到Tomcat,访问`index.html`。 |
88 | | - |
89 | | -2.2不利用IDE(只能查看404页面,不能实现让”状态码为404的请求“都转向我们自定义的404页面):直接用浏览器打开`index.html`。 |
90 | | - |
91 | | - |
| 66 | +1. 克隆项目到本地:git clone https://github.com/yansheng836/404pages.git |
| 67 | +2. 利用IDE(因为后期考虑添加另外两种访问404的方法):导入(my)eclipse,调整相关环境,部署到Tomcat,访问`index.html`。 |
| 68 | +3. 不利用IDE(只能查看404页面,不能实现让”状态码为404的请求“都转向我们自定义的404页面):直接用浏览器打开`index.html`。 |
92 | 69 |
|
93 | 70 | ## 总结 |
94 | 71 |
|
95 | 72 | 有空我会持续改进,希望可以加关注: `watch` 、 `star`或者`fork`,同时也方便下次访问。 |
96 | 73 |
|
97 | | - |
98 | | - |
99 | 74 | ## License |
100 | 75 |
|
101 | 76 | <div style="text-align:left"><img src="https://img.shields.io/github/license/yansheng836/404pages.svg"/></div> |
102 | 77 |
|
103 | | -This software is licensed under the MIT License. [View the license](https://github.com/yansheng836/404pages/blob/master/LICENSE). |
| 78 | +This software is licensed under the MIT License. [View the license](https://github.com/yansheng836/404pages/blob/master/LICENSE). |
0 commit comments