301 Redirect Generator

The 301 Redirect Tool makes it easy to create long-lasting redirects for your website’s URLs. This tool helps you make the right .htaccess rules by letting you enter several old and new URLs at the same time. With choices for case sensitivity and exact matching, it guarantees your redirects function as they should while keeping good SEO value.

Safe 301 Redirect Generator

Paste a full URL or a path starting with "/". We will match only the path.
Use Redirect 301 for simple paths. Use RewriteRule if you need flags like QSD/NC.
How to Use
  1. Enter your old URL or path (e.g., /old-page/).
  2. Enter the new target URL (absolute, e.g., https://example.com/new-page).
  3. Choose the engine:
    • Redirect 301 (mod_alias): simplest one-to-one redirect; preserves query strings.
    • RedirectMatch 301: regex; good for optional trailing slash matches.
    • RewriteRule (mod_rewrite): advanced flags (NC, QSD).
  4. Options:
    • Match trailing slash: catch both /old and /old/.
    • Case-insensitive (NC): only for RewriteRule.
    • Drop incoming query (QSD): only for RewriteRule.
  5. Click Generate and copy the snippet.
  6. Paste it at the top of .htaccess (above WordPress rules) and test.

Notes: Backup .htaccess first. Do not place Redirect inside <IfModule mod_rewrite.c>. Use RewriteRule for dropping queries via QSD.