Back to home

Apache Redirect Generator

Create Apache .htaccess Redirect or RewriteRule snippets for URL migrations, HTTPS enforcement, www canonicalization, trailing slash cleanup, and bulk URL maps.

Coding Waiting for result
Report issue

.htaccess

Rule summary

Permanent move. Common for SEO migrations.

Rules

1

Mappings

1

Review notes

Needs review

bolt Quick examples

Redirect setup

Canonical options

Bulk URL mappings

Enter one old,new pair per line. Example: /old,/new

How to use the Apache redirect generator

Choose Redirect for a simple path move, or RewriteRule when you need HTTPS, www, query-string preservation, or more control. Bulk mappings turn many old URLs into ready-to-review .htaccess lines.

Usage notes

  • Redirect 301 /old /new
  • RewriteRule ^old$ /new [R=301,L,QSA]
  • RewriteCond checks conditions such as HTTPS or host before a rule runs.

Frequently asked questions

Should I use Redirect or RewriteRule?expand_more

Use Redirect for simple one-to-one moves. Use RewriteRule when you need conditions, query-string handling, or canonical host rules.

Can I use 301 immediately?expand_more

Because permanent redirects can be cached, test with 302 first, then switch to 301 when the route is confirmed.

Keep exploring

More tools to try next

Jump into related tools from the same category and popular picks across Gogotem.

View all tools arrow_forward