UTILS.
Private by default
↪

htaccess Redirect Generator

Generate Apache .htaccess redirect rules from a list of from and to pairs.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
Each line: source path, then destination URL.
— output appears here —

About this tool

Turn a list of old-path to new-URL pairs into Apache Redirect directives for your .htaccess file, choosing 301 or 302 status; the rules are built in your browser.

Frequently asked questions

When should I use 301 versus 302?
Use 301 for permanent moves so search engines transfer ranking to the new URL, and 302 for temporary redirects you intend to reverse.
What format does each line take?
Each line is the old path followed by the destination, for example '/old-page https://example.com/new-page' separated by a space.

More tools