.htaccess Redirect Builder

Fill in source and destination URLs to generate correct .htaccess redirect rules.

Configure

Output

Summary

Fill in source and destination URLs to generate correct .htaccess redirect rules.

How it works

  1. Enter the old URL pattern
  2. Enter the new destination URL
  3. Choose redirect type (301, 302)
  4. Copy the generated .htaccess rules

Use cases

  • Implementing permanent 301 redirects after URL restructuring
  • Forcing www or HTTPS with RewriteRules
  • Redirecting old blog slugs to new paths

Frequently Asked Questions

Last updated: 2026-06-09 · Reviewed by Nham Vu