Glossary term
What is rewrite (Rewrite versus redirect)?
rewrite stands for Rewrite versus redirect.
A redirect sends the browser to a new URL, while a rewrite serves another route's content and keeps the URL the same.
Learn it properly · Next.js App RouterLesson 4: Route Handlers, Middleware (Proxy) and APIsWriting API endpoints, request and response helpers, the request interception layer in this Next.js version, headers, redirects and rewrites.