Skip to main content
wp-config.org

Server configuration

301 redirect generator for Nginx and Apache

Use this 301 redirect generator to map old addresses to new ones, import them from a CSV file and get exact-path redirect rules for Nginx or Apache. Test how your rules map an address in your browser, then check the live result with the HTTP header checker after you deploy.

  • Nginx or Apache
  • CSV import
  • Loop checks

Free, no sign-up. It runs in your browser, so nothing you type is sent to this site.

Nothing you enter leaves your browser.

This tool runs in your browser and needs JavaScript. Turn JavaScript on and reload the page.

Redirects

What you can do

  • Exact-path redirects for Nginx and Apache 2.4

  • 301, 302, 307 and 308 status choices

  • Keep or drop incoming query strings

  • CSV import and redirect chain test in your browser

  • Checks for repeated sources and redirect loops

How to create bulk redirects

  1. Choose the server

    Choose Nginx or Apache and the site address, then enter old and new paths as CSV rows without a header.

  2. Set the status

    Choose a status code and how query strings are handled. Add a test address to see where the rules send it.

  3. Merge and test

    Copy or download the rules, merge them with your existing ones, check the server configuration and test on staging before you use permanent redirects.

Redirects you can check before they go live

This free redirect generator turns a list of old and new paths into exact-path rules for Nginx or Apache. It warns about repeated sources and loops, and its tester follows the chain for an address you enter. Your list never leaves the browser, including a CSV file you import.

Know the limits

The tester covers only these mappings, not the live server, your CDN or WordPress's own redirects. Paths are exact and case sensitive. Source query strings, regular expressions, percent-encoded paths and destinations with special characters are not supported. Up to 200 mappings are accepted.

After you deploy, check the live redirect chain with the HTTP header checker. To add the rules to a new server, start with the Nginx config generator.

Frequently asked questions

What is the difference between 301, 302, 307 and 308?

301 and 308 are permanent, 302 and 307 are temporary. 307 and 308 also keep the request method, so a form POST stays a POST.

Do I need .htaccess on Nginx?

No. Nginx does not read .htaccess files, so use the Nginx output. Use the Apache output in .htaccess or in the virtual host.

Should redirects keep the query string?

Usually yes for campaign and tracking links. Drop it when the old query means nothing on the new page. The generator lets you keep or drop it.

How do I check a redirect on the live site?

Use the HTTP header checker. It follows the real redirect chain of a public address.

Related tools

  • Nginx

    Generate an Nginx config for WordPress with TLS, caching, HTTP/2 and HTTP/3.

  • .htaccess to Nginx

    Convert a WordPress or WooCommerce .htaccess file into Nginx rules, with every line explained.

  • HTTP headers

    Check a URL’s HTTP response headers and redirect chain.

  • WP-CLI commands

    Build explained WP-CLI commands for installing and maintaining WordPress.