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.
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.