Skip to content

Commit

Permalink
Merge pull request #58 from redpanda-data/redirects
Browse files Browse the repository at this point in the history
Tidy the redirects file to make it easier to navigate
  • Loading branch information
JakeSCahill authored May 31, 2024
2 parents 07f8fc4 + e45197f commit 8f6a2a8
Showing 1 changed file with 29 additions and 25 deletions.
54 changes: 29 additions & 25 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ NODE_VERSION = "18"

# NOTE the following redirects get appended to the redirects defined in the _redirects file

# ========Beta redirects==========
[[redirects]]
from = "/docs/beta/*"
to = "/beta"
Expand All @@ -31,6 +32,7 @@ from = "/beta/*"
to = "/current/:splat"
status = 307

# ===========Docusaurus to Antora migration redirects============
[[redirects]]
from = "/home"
to = "/current/home"
Expand Down Expand Up @@ -61,11 +63,6 @@ from = "/docs/22.3/*"
to = "/current/:splat"
status = 301

[[redirects]]
from = "/22.3/*"
to = "/current/:splat"
status = 301

[[redirects]]
from = "/docs/22.2/platform/*"
to = "/current/:splat"
Expand All @@ -76,11 +73,6 @@ from = "/docs/22.2/*"
to = "/current/:splat"
status = 301

[[redirects]]
from = "/22.2/*"
to = "/current/:splat"
status = 301

[[redirects]]
from = "/docs/22.1/platform/*"
to = "/current/:splat"
Expand All @@ -91,11 +83,6 @@ from = "/docs/22.1/*"
to = "/current/:splat"
status = 301

[[redirects]]
from = "/22.1/*"
to = "/current/:splat"
status = 301

[[redirects]]
from = "/docs/21.11/platform/*"
to = "/current/:splat"
Expand All @@ -106,11 +93,6 @@ from = "/docs/21.11/*"
to = "/current/:splat"
status = 301

[[redirects]]
from = "/21.11/*"
to = "/current/:splat"
status = 301

[[redirects]]
from = "/docs/21.1/*"
to = "/current/:splat"
Expand Down Expand Up @@ -146,6 +128,33 @@ from = "/docs/*"
to = "/current/:splat"
status = 301

# ================End of life versions===================
[[redirects]]
from = "/23.1/*"
to = "/current/:splat"
status = 301

[[redirects]]
from = "/22.2/*"
to = "/current/:splat"
status = 301

[[redirects]]
from = "/22.3/*"
to = "/current/:splat"
status = 301

[[redirects]]
from = "/22.1/*"
to = "/current/:splat"
status = 301

[[redirects]]
from = "/21.11/*"
to = "/current/:splat"
status = 301

# =========Bulk redirects from different components========
[[redirects]]
from = "/current/reference/docker-compose/"
to = "/redpanda-labs/"
Expand Down Expand Up @@ -230,8 +239,3 @@ status = 301
from = "/current/develop/guide-nodejs/"
to = "/redpanda-labs/"
status = 301

[[redirects]]
from = "/23.1/*"
to = "/current/:splat"
status = 301

0 comments on commit 8f6a2a8

Please sign in to comment.