istio.io/layouts/index.redir

37 lines
1.4 KiB
Plaintext

###############################################
# set server-side redirects in this file #
# see https://www.netlify.com/docs/redirects/ #
# test at https://play.netlify.com/redirects #
###############################################
# Redirect golang vanity imports for istio.io
/istio/* go-get=1 /golang/istio.html 200
/pkg/* go-get=1 /golang/pkg.html 200
/api/* go-get=1 /golang/api.html 200
/gogo-genproto/* go-get=1 /golang/gogo-genproto.html 200
/test-infra/* go-get=1 /golang/test-infra.html 200
/tools/* go-get=1 /golang/tools.html 200
/operator/* go-get=1 /golang/operator.html 200
/client-go/* go-get=1 /golang/client-go.html 200
/release-builder/* go-get=1 /golang/release-builder.html 200
# Redirect default Netlify subdomain to primary domain
https://istio.netlify.com/* https://istio.io/:splat 301!
# Redirect to translated sites
/ /zh 302 Language=zh
# Redirect for the helm charts
/charts/ https://storage.googleapis.com/istio-release/releases/{{ .Site.Data.args.full_version }}/charts/ 301
# Redirects for all aliases
{{- range $p := .Site.Pages -}}
{{- range .Aliases }}
{{ . | printf "%-35s" }} {{ $p.RelPermalink }}
{{- end -}}
{{- end }}
# Download scripts
/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