301 Redirect Generator (.htaccess)

This free redirect generator turns a list of old and new URLs into valid .htaccess rules. Paste your old-path and new-URL pairs, choose 301 (permanent) or 302 (temporary), and copy Apache-ready redirect rules that preserve your SEO when pages move.

Key takeaways

When should you use a 301 redirect?

Use a 301 (permanent) redirect whenever a page's URL changes for good — a rename, a restructure, a site migration, or merging duplicate pages. A 301 passes most of the old URL's ranking value to the new one, so you don't lose the SEO you built.

301 vs 302 — what's the difference?

How do I add redirects on WordPress?

Paste the generated rules into your site's .htaccess file (Apache), or use a redirect plugin's import. Always test on a staging copy — a malformed .htaccess can take the whole site down. nativeWP is an AI content automation platform for WordPress that bulk-generates SEO articles with your own OpenRouter API key and auto-publishes or schedules them to WordPress and Shopify.

Frequently asked questions

Is this redirect generator free?
Yes. It builds .htaccess rules in your browser with no login. Copy them into your file or plugin.
Will a 301 redirect hurt my SEO?
No — done right it protects it. A 301 passes the old page's ranking signals to the new URL. Redirect chains and loops are what to avoid.
Does this work on Nginx?
These are Apache/.htaccess rules. Nginx uses a different syntax, but the old→new mapping is the same; convert accordingly.

nativeWP is an AI content automation platform for WordPress that bulk-generates SEO articles with your own OpenRouter API key and auto-publishes or schedules them to WordPress and Shopify.