Free tool · Technical SEO
Htaccess redirect generator
Generate clean 301 or 302 redirect rules for Apache .htaccess or Nginx, whether you are moving a single page or pointing an entire domain somewhere new.
A path like /old-page, or the full old URL. Query strings like ?id=5 work too.
A full URL, or a path on the same site like /new-page.
Use 301 for moves you won't undo; it passes ranking signals to the new URL. Browsers cache 301s hard, so test with 302 first if you are unsure.
# Requires mod_rewrite. On WordPress, place these above the # BEGIN WordPress block. RewriteEngine On # /old-page RewriteRule ^old-page/?$ https://example.com/new-page [R=301,NE,L]
Paste near the top of the .htaccess file in your site root.
After you deploy, check every old URL with the bulk redirect checkerHow it works
Three steps, no signup.
Choose redirect type
Single page, bulk list, full domain or HTTPS and www.
Enter source and target
Add the old and new URLs and pick 301 permanent or 302 temporary.
Copy the rule
Paste it into your .htaccess or server config and reload.
FAQ
Htaccess Redirect Generator questions.
When should I use 301 vs 302?
Use 301 for permanent moves, which passes ranking signals to the new URL. Use 302 only for temporary redirects you intend to reverse. For SEO migrations, 301 is almost always correct.
Do redirects pass SEO value?
A 301 redirect passes the large majority of ranking signals to the destination. Chains of multiple redirects dilute this and slow the page, so redirect straight to the final URL.
Where do I put .htaccess rules?
In the .htaccess file at the root of your Apache site, with mod_rewrite enabled. On WordPress, put them above the # BEGIN WordPress block. The generator also outputs Nginx, Netlify/Cloudflare Pages and Vercel versions.
How do I redirect a whole domain?
Choose the full-domain option to send every path from the old domain to the matching path on the new one, preserving the rest of the URL. This is the standard pattern for a site move.
More free tools
Keep going.
Tools find the work. Lynx does it.
Lynx is an AI agent that builds your backlinks automatically across 2,000+ directories, forums and content platforms. Monitored for 90 days. Your first link is free.