Developer Tools100% Free Tool

Free Apache .htaccess Rewrite & Redirect Generator Online

Generate Apache .htaccess rewrite rules: 301 permanent redirects, force HTTPS/SSL, www to non-www, directory rewrites, and security headers. — 100% free online utility, zero sign-up, zero paywalls, and private client-side processing.

100% Client-Side0ms Latency
Formatted & Validated OutputValid RFC 8259

How It Works

1

Select Rule Type

Choose HTTPS redirect, domain change, or page 301 redirect.

2

Specify Old & New URLs

Provide source path and target destination.

3

Copy htaccess Directive

Paste rules into your server .htaccess file.

Frequently Asked Questions

A 301 redirect indicates a permanent move and passes 99% of SEO link equity; a 302 redirect is temporary and does not transfer ranking authority.

Related Developer Tools Calculators & Utilities

Interlinked precision tools in the Developer Tools collection.

View all Developer Tools →