Free website audit in 60 seconds
Skip to content
Webmaster.ae
  • Loading…
Webmaster.ae
Free website auditSpeed, SEO, security and email, with a PDF report

Follow us

Runs in your browserFree · no sign-up

301 redirect generator (.htaccess / Nginx)

Moving to a new website? Paste your old and new URLs, one pair per line, to generate permanent 301 redirect rules for Apache (.htaccess), Nginx, Next.js, Netlify or Cloudflare bulk redirects — and spot redirect chains.

Live resultUpdates as you type

Press “Generate redirects” to see the result here.

How do I use the 301 redirect generator (.htaccess / Nginx)?

301 redirect generator (.htaccess / Nginx): frequently asked questions

Why use 301 redirects when redesigning?

They send visitors and search engines from old URLs to new ones and pass most ranking signals, protecting your SEO.

301 or 302?

Use 301 (or 308) for permanent moves. 302 is for temporary changes.

Where do .htaccess rules go?

In the .htaccess file in your site’s root folder on Apache or LiteSpeed hosting, above other rewrite rules.

What is a redirect chain?

When A redirects to B which redirects to C. It slows pages and wastes crawl budget; redirect A straight to C.

Can I redirect to another domain?

Yes. Use a full URL (https://…) as the destination.

How many redirects can I add?

There is no limit here. For thousands of URLs, server-level maps or Cloudflare bulk redirects perform best.

Will this tool improve my rankings?

It helps you find and fix issues. Rankings depend on content, technical health and authority together; our SEO team can help with the rest.

Is the 301 redirect generator (.htaccess / nginx) free?

Yes. It is free with no sign-up and no usage limits for normal use.

Is my data sent to your servers?

No. This tool runs entirely in your browser, so what you type never leaves your device.

Does it work on my phone?

Yes. The tool works in any modern browser on iPhone, Android, tablet or computer.