mirror of https://github.com/istio/istio.io.git
redirect preliminary links to preliminary.istio.io (#7935)
This commit is contained in:
parent
06de861a7b
commit
b73bb6a5ed
|
|
@ -38,11 +38,16 @@ https://istio.netlify.com/* https://istio.io/:splat 301!
|
||||||
/downloadIstio https://raw.githubusercontent.com/istio/istio/release-{{ .Site.Data.args.version }}/release/downloadIstioCandidate.sh
|
/downloadIstio https://raw.githubusercontent.com/istio/istio/release-{{ .Site.Data.args.version }}/release/downloadIstioCandidate.sh
|
||||||
/downloadIstioctl https://raw.githubusercontent.com/istio/istio/release-{{ .Site.Data.args.version }}/release/downloadIstioCtl.sh
|
/downloadIstioctl https://raw.githubusercontent.com/istio/istio/release-{{ .Site.Data.args.version }}/release/downloadIstioCtl.sh
|
||||||
|
|
||||||
#navigating to a page without /latest on front, add /latest
|
# navigating to a page without /latest on front, add /latest
|
||||||
{{ range $p := .Site.Pages }}
|
{{ range $p := .Site.Pages }}
|
||||||
{{ strings.TrimPrefix "/latest" $p.Permalink }} {{ $p.Permalink}}
|
{{ strings.TrimPrefix "/latest" $p.Permalink }} {{ $p.Permalink}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
# redirect current version to /latest
|
||||||
/v{{ .Site.Data.args.version }}/* /latest/:splat
|
/v{{ .Site.Data.args.version }}/* /latest/:splat
|
||||||
|
|
||||||
|
#redirect next version to preliminary
|
||||||
|
/v{{ .Site.Data.versions.preliminary }}/* https://preliminary.istio.io/latest/:splat
|
||||||
|
|
||||||
http://archive.istio.io /archive 301!
|
http://archive.istio.io /archive 301!
|
||||||
http://archive.istio.io/* /:splat 301!
|
http://archive.istio.io/* /:splat 301!
|
||||||
Loading…
Reference in New Issue