Skip to content

Commit 9c3463f

Browse files
committed
chore: update redirect status code and header comments to static/_redirects.base
1 parent f6b6444 commit 9c3463f

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

layouts/index.redirects

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
###############################################
88

99
# Dynamic latest API redirect - automatically points to current latest version
10-
/docs/reference/generated/kubernetes-api/latest/ /docs/reference/generated/kubernetes-api/{{ $latest }}/ 301
11-
/docs/reference/generated/kubernetes-api/latest/* /docs/reference/generated/kubernetes-api/{{ $latest }}/:splat 301
10+
/docs/reference/generated/kubernetes-api/latest/ /docs/reference/generated/kubernetes-api/{{ $latest }}/ 307
11+
/docs/reference/generated/kubernetes-api/latest/* /docs/reference/generated/kubernetes-api/{{ $latest }}/:splat 307
1212

1313
# Include all existing static redirects
1414
{{- $staticRedirects := readFile "static/_redirects.base" -}}

static/_redirects.base

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
# test at https://play.netlify.com/redirects #
55
###############################################
66

7+
# NOTE: This is the SOURCE FILE for static redirects.
8+
#
9+
# How to add redirects:
10+
# - For STATIC redirects (fixed paths): Add them to THIS FILE
11+
# - For DYNAMIC redirects (using Hugo variables/logic): Edit layouts/index.redirects
12+
#
13+
# The actual _redirects file is auto-generated by Hugo from layouts/index.redirects,
14+
# which combines dynamic redirects with the static redirects from this file.
15+
16+
717
/concepts/containers/container-lifecycle-hooks/ /docs/concepts/containers/container-lifecycle-hooks/ 301
818
/docs/ /docs/home/ 301!
919
/bn/docs/ /bn/docs/home/ 301!

0 commit comments

Comments
 (0)