Redirect Generator
Generate 301/302 redirect rules for Apache, Nginx, Next.js, and Vercel.
Redirect Entries
Entry 1
Entry 2
module.exports = {
async redirects() {
return [
{ source: "/old-page", destination: "/new-page", permanent: true },
{ source: "/old-path", destination: "/new-path", permanent: true }
];
},
};Tips
- • Use 301 for permanent moves (SEO-friendly), 302 for temporary redirects
- • Next.js: add the redirects array inside next.config.js at the root of your project
- • Vercel: add the redirects array to vercel.json in your project root
- • WordPress: paste the rules inside your .htaccess file, within the mod_rewrite block