HTACCESS Redirect Generator

Free tool to create redirect rules for your .htaccess file

The URL you want to redirect from (e.g. /old-page.html)
The URL you want to redirect to (e.g. /new-page.html or https://example.com/new-page.html)
Additional Options

How to Use This Tool

  1. Select the redirect type (301 is recommended for permanent moves)
  2. Enter the source URL/path (the old URL you want to redirect from)
  3. Enter the target URL/path (the new URL you want to redirect to)
  4. Select any additional options you need
  5. Click "Generate HTACCESS Code"
  6. Copy the generated code into your .htaccess file
Important: Always back up your .htaccess file before making changes. Incorrect rules can make your site inaccessible.