HTACCESS Redirect Generator

Create Custom .htaccess Files for Your Website

How to use this tool

Enter your old URL paths in the left column (Old URLs) and their corresponding new URL paths in the right column (New URLs). Each line in the left column should match with the same line number in the right column.

Example: If yoursite.com/old-about.html moved to yoursite.com/about:
Left column: /old-about.html
Right column: /about

The tool generates 301 permanent redirects for your .htaccess file. Each redirect preserves your SEO rankings when moving pages.

Enter Your URL Redirects

Enter old URLs on the left and their corresponding new URLs on the right. Each line represents one redirect.

One URL per line

Matching line numbers

Tip: Line 1 on the left redirects to line 1 on the right, line 2 to line 2, etc.

About .htaccess Redirects

The .htaccess file is a configuration file for Apache web servers that allows you to control redirects, URL rewrites, and other server behaviors without modifying the main server configuration.

Key Features:

  • 301 Redirects - Permanent redirects that tell search engines the page has moved permanently
  • SEO Friendly - Preserves search engine rankings when moving content
  • Easy Implementation - Simply copy the generated code to your .htaccess file
  • No Code Required - Works immediately without server restart

Common Use Cases:

  • Moving pages to new URLs
  • Redirecting old domains to new domains
  • Fixing broken links after website restructuring
  • Consolidating duplicate content

Important: Always backup your .htaccess file before making changes. Place the redirect rules at the top of your .htaccess file for best results.

This website uses Cookies to ensure optimal user experience.