Redirect Generator
Generate 301/302 redirect rules for Apache .htaccess, Nginx, and Cloudflare.
Old Path / URL
New URL
Type
How to Use
- Enter the old (source) URL path and the new (destination) URL for each redirect.
- Select 301 (permanent) or 302 (temporary) for each rule.
- Choose your server type: Apache, Nginx, or Cloudflare.
- Copy the generated rules and add them to your server configuration.
Frequently Asked Questions
QWhen should I use 301 vs 302?
Use 301 (permanent) when a page has moved for good — it passes SEO value to the new URL. Use 302 (temporary) for seasonal or testing redirects where the original URL will return.
QWhere does .htaccess go?
The .htaccess file lives in your site's document root (same folder as index.php). Add redirect rules at the top of the file, before any existing RewriteRules.
QDoes a 301 redirect lose PageRank?
Historically yes, with a small loss. Since 2016 Google has confirmed that 301 redirects pass full link equity, so the SEO impact is negligible.
About This Tool
HTTP redirects are fundamental to maintaining SEO equity during site migrations, URL restructures, and domain changes. Getting redirect chains and types right is critical for preserving search rankings.