mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
website: add new redirects based on recent 404s (#12157)
This commit is contained in:
parent
365dc3bed2
commit
64843eb717
1 changed files with 25 additions and 0 deletions
|
|
@ -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 },
|
||||
|
|
|
|||
Loading…
Reference in a new issue