kitzos

.htaccess Redirect Generator

Generate Apache mod_rewrite 301 or 302 redirect rules for .htaccess files.

Paths should start with /. Rules use Apache mod_rewrite.

Redirect type

How to use

  1. 1

    Set paths

    Enter the old and new URL paths.

  2. 2

    Pick redirect type

    Choose 301 permanent or 302 temporary.

  3. 3

    Copy rules

    Paste into your .htaccess file.

Frequently Asked Questions

These are Apache mod_rewrite rules. Nginx uses a different syntax.