Skip to content

Commit

Permalink
Add latest redirect for new version of 360 docs (#4383)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Maddaus <[email protected]>
  • Loading branch information
IanMadd authored Feb 19, 2025
1 parent df23cfd commit 0fc0b59
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,28 +39,17 @@
Strict-Transport-Security = "max-age=2592000"
Permissions-Policy = "vibrate=(), geolocation=(), midi=(), notifications=(), push=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), speaker=(), vibrate=(), fullscreen=(), payment=()"

## redirects traffic from old InSpec docs inspec.io/docs/
##############
##
## Site redirects
## https://docs.netlify.com/routing/redirects/#syntax-for-the-netlify-configuration-file
## https://docs.netlify.com/routing/redirects/redirect-options/
##
##############

[[redirects]]
from = "/inspec/reference/*"
to = "/inspec/:splat"
status = 301

[[redirects]]
from = "/resource_*"
to = "/resources/:splat"
status = 301

[[redirects]]
from = "/inspec_reference.html"
to = "/inspec/cli"
status = 301

[[redirects]]
from = "/plugin_knife_windows.html"
to = "/workstation/knife_windows/"
status = 301
####
# Chef 360 Platform redirects
####

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

[[redirects]]
from = "/360/latest/*"
to = "/360/1.2/:splat"
status = 301

####
# Chef Infra Client redirects
####

[[redirects]]
from = "/client/rc1/*"
to = "https://release-rc1--chef-infra-client.netlify.app/client/rc1/:splat"
Expand Down

0 comments on commit 0fc0b59

Please sign in to comment.