SEO ToolsTechnical SEOFree Tool
.htaccess Redirect Generator
Enter old-path,new-path pairs and get back ready-to-paste Apache mod_rewrite 301 redirect rules for your .htaccess file.
How to Use .htaccess Redirect Generator
- 1List each redirect as old-path,new-path on its own line
- 2Click Generate
- 3Copy the RewriteEngine/Redirect rules produced
- 4Paste them into your site's .htaccess file
Frequently Asked Questions
One redirect per line, as old-path,new-path — for example /old-page,/new-page or a full destination URL.
A permanent 301 redirect for each pair, using Apache's Redirect directive wrapped in RewriteEngine On.
This generator only outputs Apache .htaccess syntax. Use the Nginx Config Formatter or your host's redirect panel for other server types.
Paste the generated rules into the .htaccess file in your site's root directory (or merge them into an existing one) — most Apache hosts read it automatically.
Related Tools
Sitemap Generator
Paste a list of your page URLs and get back a valid XML sitemap, ready to upload and submit to Search Console.
Sitemap Splitter
Paste a large sitemap or URL list and split it into 500-URL chunks plus a sitemap index, matching Google's recommended per-file limit.
robots.txt Generator
Enter your domain to generate a starter robots.txt with a sitemap reference — a fixed, standard rule set you can customize further by hand.
robots.txt Analyzer
Paste in your existing robots.txt content to see its User-agent, Allow, Disallow, and Sitemap rules summarized, with a warning if you're accidentally blocking all crawlers.