website: add new redirects based on recent 404s (#12157)

This commit is contained in:
Bryce Kalow 2021-01-26 10:18:32 -06:00 committed by GitHub
parent 365dc3bed2
commit 64843eb717
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 },