Skip to content
Free SEO tool

301 Redirect Generator

Create permanent 301 redirect rules for Apache .htaccess or Nginx from a list of old and new URLs.

Free, no signup Runs in your browser Instant results

Details

Output

    Quick answer

    How do I set up a 301 redirect?

    On Apache, add a RewriteRule with the R=301 flag to your .htaccess file; on Nginx, add a location block that returns 301 with the new address. Point each old URL to its closest new page, never all of them to the home page.

    About the 301 Redirect Generator

    A 301 redirect sends visitors and search engines from an old address to a new one and passes most of the old page’s ranking signals along. You need them after a redesign, a change of URL structure, or when merging two pages about the same topic.

    Map each old URL to the closest matching new page, not everything to the home page. Google treats mass redirects to the home page as soft 404s. Avoid chains: if A already redirects to B and B moves to C, point A straight at C.

    How to use the 301 Redirect Generator

    1. Paste old and new paths, one pair per line.
    2. Choose Apache or Nginx.
    3. Copy the rules into your server configuration.

    Questions

    When should I use a 301?

    Whenever a page moves permanently. A 301 passes ranking signals to the new URL.