Skip to content

Commit 0fc0b59

Browse files
authored
Add latest redirect for new version of 360 docs (#4383)
Signed-off-by: Ian Maddaus <[email protected]>
1 parent df23cfd commit 0fc0b59

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

netlify.toml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,28 +39,17 @@
3939
Strict-Transport-Security = "max-age=2592000"
4040
Permissions-Policy = "vibrate=(), geolocation=(), midi=(), notifications=(), push=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), speaker=(), vibrate=(), fullscreen=(), payment=()"
4141

42-
## redirects traffic from old InSpec docs inspec.io/docs/
42+
##############
43+
##
44+
## Site redirects
4345
## https://docs.netlify.com/routing/redirects/#syntax-for-the-netlify-configuration-file
46+
## https://docs.netlify.com/routing/redirects/redirect-options/
47+
##
48+
##############
4449

45-
[[redirects]]
46-
from = "/inspec/reference/*"
47-
to = "/inspec/:splat"
48-
status = 301
49-
50-
[[redirects]]
51-
from = "/resource_*"
52-
to = "/resources/:splat"
53-
status = 301
54-
55-
[[redirects]]
56-
from = "/inspec_reference.html"
57-
to = "/inspec/cli"
58-
status = 301
59-
60-
[[redirects]]
61-
from = "/plugin_knife_windows.html"
62-
to = "/workstation/knife_windows/"
63-
status = 301
50+
####
51+
# Chef 360 Platform redirects
52+
####
6453

6554
[[redirects]]
6655
from = "/360/1.0/*"
@@ -77,6 +66,15 @@
7766
to = "https://release-1-2--chef-360.netlify.app/360/1.2/:splat"
7867
status = 200
7968

69+
[[redirects]]
70+
from = "/360/latest/*"
71+
to = "/360/1.2/:splat"
72+
status = 301
73+
74+
####
75+
# Chef Infra Client redirects
76+
####
77+
8078
[[redirects]]
8179
from = "/client/rc1/*"
8280
to = "https://release-rc1--chef-infra-client.netlify.app/client/rc1/:splat"

0 commit comments

Comments
 (0)