Back to home

Redirect Generator

Generate 301/302 redirect rules for Apache, Nginx, Next.js, and Vercel.

✨ Redirect entries

Entry 1

Platform

RewriteEngine On
RewriteRule ^old-page$ /new-page [R=301,L]

Tips

  • Use 301 for permanent moves (SEO-friendly), 302 for temporary redirects.
  • Apache: place rules in .htaccess in your site root (with mod_rewrite enabled).
  • Nginx: add rewrite lines inside the right server block, then reload.
  • Next.js: merge redirects() into next.config.js or next.config.mjs.
  • Vercel: merge the redirects array into vercel.json.