From 64843eb717e921188de12bf97b7cbcacecd134a4 Mon Sep 17 00:00:00 2001 From: Bryce Kalow Date: Tue, 26 Jan 2021 10:18:32 -0600 Subject: [PATCH] website: add new redirects based on recent 404s (#12157) --- website/redirects.next.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/website/redirects.next.js b/website/redirects.next.js index 496576e50..162159c56 100644 --- a/website/redirects.next.js +++ b/website/redirects.next.js @@ -80,6 +80,31 @@ module.exports = [ 'https://learn.hashicorp.com/tutorials/vagrant/getting-started-:path*', permanent: true, }, + { + source: '/docs/why-vagrant', + destination: '/intro#why-vagrant', + permanent: true, + }, + { + source: '/boxes', + destination: 'https://app.vagrantup.com/boxes', + permanent: true, + }, + { + source: '/boxes/search', + destination: 'https://app.vagrantup.com/boxes/search', + permanent: true, + }, + { + source: '/downloads\\.(html?)?', + destination: '/downloads', + permanent: true, + }, + { + source: '/download', + destination: '/downloads', + permanent: true, + }, // disallow '.html' or '/index.html' in favor of cleaner, simpler paths { source: '/:path*/index', destination: '/:path*', permanent: true }, { source: '/:path*.html', destination: '/:path*', permanent: true },