Redirects
Manage Astro's redirects config and create a 404 page. Admins only.
Redirects edits the redirects object in astro.config.*. Add, change and delete rules with a status code (301, 302, 303, 307, 308; 301 and 308 pass link equity). Source paths can use [param] and [...rest] patterns. Create a 404 page adds src/pages/404.astro if the site has none.
export default defineConfig({
redirects: {
"/old-post": "/blog/new-post",
"/team": { status: 302, destination: "/about" },
},
});
The Gitupcms SEO Links agent proposes redirects for broken links.