b2KIT

.htaccess Redirect Generator

Generate Apache .htaccess redirect rules for 301, 302, and rewrite configurations.

#1
Redirect 301 /old-page /new-page

1 redirect rule

How to Use .htaccess Redirect Generator

  1. 1

    Enter the old URL

    Type the source URL path you want to redirect from.

  2. 2

    Enter the new URL

    Type the destination URL path to redirect to.

  3. 3

    Select redirect type

    Choose 301 permanent or 302 temporary redirect.

  4. 4

    Copy the rule

    Click copy to grab the .htaccess redirect rule.

Related Tools