Htaccess Redirect Generator

Generate clean Apache .htaccess RewriteRule redirects, Nginx rewrites, and 301 or 302 redirect rules from a single source and destination.

Redirect details

Build a single URL redirect, create an Apache RewriteRule, or use a preset template for common canonicalization tasks such as HTTPS and WWW redirects.

Redirect type

Use a path such as /old-page or a full URL for domain-level redirects.

Full destination URL with protocol.

Enter the domain without protocol to generate a reusable template.

Format: source,destination,type. Bulk generation is available for Pro users.

No redirect rules yet

Enter your redirect details, choose a template, or unlock bulk mode to generate production-ready rules.

Generating redirect rules...

Generated rules

Copy the platform-specific output below and paste it into your server or deployment config.



                    

We could not generate that redirect

Check the input values and try again.

Pro features

Pro

Bulk CSV generation

Convert a list of legacy URLs into .htaccess redirect rules and matching outputs across every supported format.

Migration presets

Generate reusable migration rules for HTTPS rollouts, hostname cleanup, and domain moves.

Team-ready exports

Download polished server config snippets for handoff to developers, DevOps, or hosting teams.

Help & Guides

Need implementation advice or common setup answers?

Similar Tools