# Generatore di regole di reindirizzamento

> Crea snippet comuni per reindirizzamenti server ed esempi di pattern locali.

[Open tool](https://www.toolcabana.com/it/redirect-rule-generator) · [Pubblicazione web e marketing](https://www.toolcabana.com/it/category/web-publishing-and-marketing)

Tool ID: redirect-rule-generator. Requested language: it. Description language: it. Complete guide translation: yes.

## Overview (en)

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.

## Supported tasks (it)

Crea snippet comuni per reindirizzamenti server ed esempi di pattern locali.

## Steps (it)

1. Incolla l'origine nell'editor di input, oppure carica l'esempio integrato.
2. Regola le impostazioni di base, poi apri la modalità avanzata per le opzioni di esportazione e ottimizzazione. Le impostazioni personalizzate restano attive quando il pannello è chiuso.
3. Esegui Generatore di regole di reindirizzamento, esamina il risultato, poi usa i controlli disponibili per copiare o scaricare.

## Settings

- Server (it; key: target; type: select): nginx [it], Apache [it], Netlify [it]
- URL di base di destinazione (it; key: destination; type: text)
- Stato (it; key: status; type: select): 301 [it], 302 [it]

## Limitations (it)

Gli input CSV/XLSX sono limitati a 10 MB ciascuno, 200 colonne e 20.000 righe; l'output unito è limitato a 20.000 righe. La valutazione di script e filtri JSONPath è disattivata. Le altre operazioni applicano i controlli visibili e i limiti di testo.

## Example input

```text
/old-page,/new-page
/old-tools,/tools
```

## Privacy and connections (it)

Questa operazione elabora i dati di origine nel tuo browser. Copia e download sono azioni esplicite; l'input di origine non viene salvato in un account né in una cronologia.

## Questions (it)

### 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.

### Dove viene elaborato il mio input?

Questa operazione elabora i dati di origine nel tuo browser. Copia e download sono azioni esplicite; l'input di origine non viene salvato in un account né in una cronologia.

### Quali sono i limiti di input?

Gli input CSV/XLSX sono limitati a 10 MB ciascuno, 200 colonne e 20.000 righe; l'output unito è limitato a 20.000 righe. La valutazione di script e filtri JSONPath è disattivata. Le altre operazioni applicano i controlli visibili e i limiti di testo.

## Related tools

- [JSON-LD schema generator](https://www.toolcabana.com/it/json-ld-schema-generator)
- [Hreflang tag generator](https://www.toolcabana.com/it/hreflang-tag-generator)
- [SERP snippet preview](https://www.toolcabana.com/it/serp-snippet-preview)
- [Keyword list grouper](https://www.toolcabana.com/it/keyword-list-grouper)
