- Home
- SEO & Marketing
- Redirect Generator
Redirect Generator
Turn a list of old and new URLs into 301 or 302 redirect rules for Apache .htaccess or Nginx.
Separate the two with a space, a comma or a vertical bar. The old side may be a full URL; only its path and query are used.
Which status to use
Use 301 when a page has moved for good: search engines move the ranking to the new address. Use 302 while the move is temporary. Each rule matches the old path with or without a trailing slash, and a query string on the old side must match exactly. Apache rules need mod_rewrite. Nginx rules go inside the server block and are matched before location blocks.