ToolCabana

Redirect rule generator

Create common server redirect snippets and local pattern examples.

Favorites are saved in this browser. Find them in My favorites.

Redirect rule generator

Your input stays in this browser unless stated otherwise
Clear your input, files and result, and restore the default settings.
Load sample text to explore what this tool can do. This replaces your current input.
0 charactersClear the source text.

ວິທີໃຊ້ Redirect rule generator

Redirect Rule Generator converts a list of old and new paths into redirect rules for nginx, Apache or Netlify. Enter one old path and new path per line, separated by a comma, up to 1000 lines, and choose a 301 or 302 status. Each new path is joined to your destination base URL, and only literal paths are accepted, so wildcards and regex patterns are rejected.

  1. Paste the source into the input editor, or load the built-in example.
  2. Adjust the basic settings, then open Advanced mode for export and fine-tuning options. Custom settings stay active when the panel is closed.
  3. Run redirect rule generator, review the output, then use the available copy or download controls.

ສິ່ງທີ່ເຄື່ອງມືນີ້ຮອງຮັບ

Create common server redirect snippets and local pattern examples.

Server
nginx · Apache · Netlify
Destination base URL
Set this value for your task.
Status
301 · 302

ຂໍ້ຈຳກັດ ແລະ ການປະມວນຜົນ

CSV/XLSX inputs are capped at 10 MB each, 200 columns and 20,000 rows; joined output is capped at 20,000 rows. JSONPath script/filter evaluation is disabled. Other operations apply their visible controls and text limits.

ແຫຼ່ງຕົວຢ່າງ
/old-page,/new-page
/old-tools,/tools

ຄຳຖາມທີ່ພົບເລື້ອຍ

What does an nginx redirect from this generator look like?

Each line becomes an exact-match location block that returns the chosen status and full destination, such as location = /old-page { return 301 https://example.com/new-page; }. Apache output uses Redirect 301 lines, and Netlify lines list path, URL and status.

Should I choose a 301 or 302 redirect?

Use 301 for a permanent move and 302 for a temporary one. The status you pick is written into every generated rule, so create separate batches if some redirects are permanent and others temporary.

Why does the redirect generator reject my paths?

Paths must start with a slash and contain only letters, digits, slashes, dots, dashes, percent signs and underscores. Query strings, spaces, wildcards and regex characters are refused, and the destination must be a plain HTTP or HTTPS URL.

Where is my input processed?

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

What are the input limits?

CSV/XLSX inputs are capped at 10 MB each, 200 columns and 20,000 rows; joined output is capped at 20,000 rows. JSONPath script/filter evaluation is disabled. Other operations apply their visible controls and text limits.