redirects

See also:

Permanent redirections (HTTP status code 301):

// vite.config.js
 
import vike from 'vike/plugin'
 
export default {
  plugins: [
    vike({
      redirects: {
        '/about-us': '/about',
        // Parameterized redirections
        '/product/@id': '/buy/@id',
        // Glob redirections
        '/admin/*': '/private/*',
        // External redirections
        '/admin/*': 'https://admin.example.org/*'
      }
    })
  ]
}