forked from apache/dubbo-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
57 lines (55 loc) · 3.13 KB
/
404.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<!-- 添加Apache校验项开始 -->
<!-- 只加a标签和img标签,不要有其余的标签出现,同时设置style="display: none" -->
<a style="display: none" href="http://www.apache.org/events/current-event">Apache Dubbo is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.</a>
<img style="display: none" src="http://dubbo.apache.org/img/apache_logo.png"/>
<ul style="display: none">
<p class="header">ASF</p>
<li><a href="http://www.apache.org">Foundation</a></li>
<li><a href="http://www.apache.org/licenses/">License</a></li>
<li><a href="http://www.apache.org/events/current-event">Events</a></li>
<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
</ul>
<p style="display: none">Copyright © 2018 The Apache Software Foundation. Apache and the Apache feather logo are trademarks of The Apache Software Foundation.</p>
<a style="display: none" href="http://www.apache.org/security/">Security</a>
<!-- 添加Apache校验项结束 -->
<script src="//cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
<script>
var originalHref = window.location.href;
if (originalHref.indexOf("docs/user/") > -1) {
window.location.href = newHref("docs/user/", "docs/v2.7/user/");
} else if (originalHref.indexOf("docs/dev/") > -1) {
window.location.href = newHref("docs/dev/", "docs/v2.7/dev/");
} else if (originalHref.indexOf("docs/admin/") > -1) {
window.location.href = newHref("docs/admin/", "docs/v2.7/admin/");
} else if (originalHref.indexOf("docs/source_code_guide/") > -1) {
window.location.href = newHref("docs/source_code_guide/", "docs/v2.7/dev/source/");
} else if (originalHref.indexOf("docs/developers/") > -1) {
window.location.href = newHref("docs/developers/", "contribution-guidelines/");
} else if (originalHref.indexOf("blog/index.html") >-1) {
window.location.href = newHref("blog/index.html", "blog/2018/08/07/dubbo-101/");
} else {
// window.location.href = "http://dubbo.apache.org/en-us/";
}
function newHref(path, newPath) {
var idx = originalHref.indexOf(path);
var part1 = originalHref.substring(0, idx);
var part2 = "";
if (idx + path.length < originalHref.length -1) {
part2 = originalHref.substring(idx + path.length);
}
var newHref = part1 + newPath + part2;
if (newHref.endsWith('.html')) {
newHref = newHref.substr(0, newHref.length - 5) + "/";
}
return newHref;
}
</script>
</body>
</html>