All tools
Tools301 redirect generator
301 redirect generator
Apache, Nginx, Vercel, Next.js, Netlify, and Cloudflare snippets.
Result
## apache
Redirect 301 /old https://ystartups.com/new
## nginx
rewrite ^/old$ https://ystartups.com/new permanent;
## vercel
{
"redirects": [
{
"source": "/old",
"destination": "https://ystartups.com/new",
"permanent": true
}
]
}
## nextjs
redirects() { return [{ source: "/old", destination: "https://ystartups.com/new", permanent: true }]; }
## netlify
/old https://ystartups.com/new 301!
## cloudflare
add event listener fetch → Response.redirect("https://ystartups.com/new", 301)How to use the 301 redirect generator
- Fill in the fields.
- Adjust until the preview looks right; it updates instantly.
- Copy or download the result.
About this tool
Apache, Nginx, Vercel, Next.js, Netlify, and Cloudflare snippets. It is part of the free YStartUps founder toolkit, a set of on-page and technical SEO tools for titles, meta tags, schema, headers, DNS, SSL and AI discovery files. Free, with no account needed.
More in On-page & technical SEO, or launch your product free on the YStartUps launchpad.
FAQ
Is the 301 redirect generator free?
Yes. Every YStartUps tool is free to use, with no signup.
Is my input uploaded anywhere?
No. Everything runs in your browser.