File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {{ $disabled := or (hasPrefix .RelPermalink "/zh/docs/v3.3")
2+ (hasPrefix .RelPermalink "/zh/docs/v3.4")
3+ (hasPrefix .RelPermalink "/zh/docs/v4.1")
4+ (hasPrefix .RelPermalink "/docs/v3.3")
5+ (hasPrefix .RelPermalink "/docs/v3.4")
6+ (hasPrefix .RelPermalink "/docs/v4.1") }}
7+
8+ {{ if $disabled }}
9+ <!DOCTYPE html>
10+ < html >
11+ < head >
12+ < meta http-equiv ="refresh " content ="0; url=/404.html ">
13+ < script > window . location = '/404.html' ; </ script >
14+ < meta name ="robots " content ="noindex,nofollow ">
15+ < meta http-equiv ="Cache-Control " content ="no-store ">
16+ </ head >
17+ < body > </ body >
18+ </ html >
19+ {{ return }}
20+ {{ end }}
21+
122<!DOCTYPE html>
223< html lang ="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }} ">
324
Original file line number Diff line number Diff line change 2828 status = 301
2929 force = true
3030
31+ [[redirects ]]
32+ from = " ^/(zh/)?docs/(v3\\ .3|v3\\ .4|v4\\ .1)(/.*)?$"
33+ to = " /404.html"
34+ status = 404
35+ force = true
36+ conditions = { Role = " all" }
37+
38+ [[headers ]]
39+ for = " ^(/zh)?/docs/(v3\\ .3|v3\\ .4|v4\\ .1)(/.*)?$"
40+ [headers .values ]
41+ Cache-Control = " no-store, max-age=0"
42+ X-Robots-Tag = " noindex, nofollow"
43+
44+
You can’t perform that action at this time.
0 commit comments