SEO ToolsTechnical SEOFree Tool

.htaccess Redirect Generator

Enter old-path,new-path pairs and get back ready-to-paste Apache mod_rewrite 301 redirect rules for your .htaccess file.

How to Use .htaccess Redirect Generator
  1. 1List each redirect as old-path,new-path on its own line
  2. 2Click Generate
  3. 3Copy the RewriteEngine/Redirect rules produced
  4. 4Paste them into your site's .htaccess file
Frequently Asked Questions

One redirect per line, as old-path,new-path — for example /old-page,/new-page or a full destination URL.

A permanent 301 redirect for each pair, using Apache's Redirect directive wrapped in RewriteEngine On.

This generator only outputs Apache .htaccess syntax. Use the Nginx Config Formatter or your host's redirect panel for other server types.

Paste the generated rules into the .htaccess file in your site's root directory (or merge them into an existing one) — most Apache hosts read it automatically.

Related Tools

Related Articles

More from SEO Tools