Provide path and click Generate

Generate rules for .htaccess

The .htaccess file provides powerful per-directory configuration for Apache, including redirects, URL rewriting and access controls.

RewriteRule directives allow defining pattern-based URL transformations, combining conditional checks and preserving clean URLs without changing site structure.

Well-crafted rules help preserve SEO value, reduce 404s, and simplify maintenance during site migrations.

How to use

  • 1

    Enter old and new path

    Provide the old path (or pattern) and the target path.

  • 2

    Choose type

    Select 301/302 or internal rewrite as needed.

  • 3

    Apply rule

    Copy the rule to your .htaccess and test in a staging environment.

FAQ