Home › SEO Tools › Htaccess Redirect Generator

Htaccess Redirect Generator

List old and new URLs to generate redirect rules for an Apache .htaccess file.

How it works

Put the rules near the top of the .htaccess file in your site root. Back up the file first, because a mistake can take the site offline.

Why use it

Everything runs in your browser: nothing you type is sent to a server, so it is safe for client and unpublished work.

Frequently asked questions

301 or 302?

Use 301 for permanent moves so search engines pass ranking signals to the new URL. Use 302 only for temporary changes.

Does this work on Nginx?

No. Nginx does not read .htaccess; redirects go in the server configuration.

Last reviewed 2026-11-25 · How we build and check our tools