---
title: "Redirects"
url: https://docs.corefinity.com/guides/sites/site-settings/redirects
type: guide
last_updated: 2026-11-13
feature: redirects
related:
  - https://docs.corefinity.com/api/reference/site-settings/get-site-redirects.md
  - https://docs.corefinity.com/api/reference/site-settings/replace-site-redirects.md
  - https://docs.corefinity.com/api/reference/site-settings/export-site-redirects.md
  - https://docs.corefinity.com/api/reference/site-settings/import-site-redirects.md
  - https://docs.corefinity.com/api/reference/site-settings/test-site-redirect.md
  - https://docs.corefinity.com/mcp/tools/corestack_redirects_get.md
  - https://docs.corefinity.com/mcp/tools/corestack_redirects_update.md
  - https://docs.corefinity.com/mcp/tools/corestack_redirects_test.md
  - https://docs.corefinity.com/mcp/tools/corestack_redirects_import.md
  - https://docs.corefinity.com/mcp/tools/corestack_redirects_export.md
---
# Redirects

Send visitors from one path on your site to another address.

## Before you start

- You can open the site in **Managed Websites**. Anyone who can open a site can change its redirects.
- These rules redirect paths, such as `/sale`. To redirect a whole domain, such as `www`, use **Domains & HTTPS**: see [Add a domain](/guides/sites/go-live/add-a-domain).

## Add a redirect

1. **Open the site's redirects**

   Go to **Managed Websites**, choose the site, then **Redirects** under **Site settings**.

   _Screenshot: A site page with the Redirects card open. It lists the rules with their From, Match, To, Code and Note, under the buttons Test a URL, Import, Export and Add redirect._

2. **Enter the two addresses**

   Choose **Add redirect**. Enter the path to send from in **From** and where it goes in **To**, then check the **For example** line.

   _Screenshot: The Add redirect dialog with /sale in From and /offers in To. The For example line shows the full address a visitor is sent from and to._

3. **Add it and save**

   Choose **Add redirect**, then **Save changes**. Nothing on the site changes until you save.

   _Screenshot: The Redirects card with the new rule marked NEW at the bottom of the list, the line 1 unsaved change, and Save changes ringed beside Discard._

The redirect is on the site within a minute or two.

### Choices in the dialog

| Choice                | What it does                                                                          |
| --------------------- | ------------------------------------------------------------------------------------- |
| **Exact**             | Redirects this path only.                                                             |
| **Prefix**            | Redirects this path and everything under it. The rest of the path is added to **To**. |
| **Regex**             | Redirects paths that match a pattern. Use `$1` in **To** for the part in brackets.    |
| **301 Permanent**     | Browsers and search engines remember it. Use it for a page that has moved for good.   |
| **302 Temporary**     | Checked again on every visit. Use it for offers and short-lived moves.                |
| **Keep query string** | Passes `?utm_source=…` and the like on to **To**.                                     |
| **Enabled**           | Untick to keep the rule without applying it.                                          |

On a site with more than one domain, a rule set to **Only these domains** runs on those domains before the rules for **Every domain**. Domain rules never apply to the platform's reserved paths.

Within each of the two groups, an **Exact** rule always wins for its path, and so does a **Prefix** rule for its own path: a **Prefix** rule for `/blog` wins for `/blog` itself. For every other path, **Prefix** and **Regex** rules are tried from the top and the first match wins: drag a row to move it.

## Test a redirect

1. **Test a path**

   Choose **Test a URL**, enter a path such as `/blog/autumn-menu` and choose **Test**. The result names the rule that matches and the address the visitor is sent to.

   _Screenshot: The Test a URL dialog with /blog/autumn-menu entered. The result reads Matches rule 2, a Prefix rule for /blog, and shows the 301 address it sends to._

A test includes your unsaved changes: try a rule before you save it.

## Import redirects

1. **Paste the list**

   Choose **Import** and pick the **Format**: **nginx**, **Apache .htaccess** or **CSV**. Paste the list into **Rules**, or drop a file of up to 256 KiB.

   _Screenshot: The Import redirects dialog with Apache .htaccess chosen as the Format, an empty Rules box, and the buttons Parse, Cancel and Import rules._

2. **Check it, import and save**

   Choose **Parse**: a line that cannot be imported is listed with the reason, and skipped. Choose **Import 3 rules** (the button counts yours), then **Save changes**.

   _Screenshot: The Import redirects dialog after Parse: three pasted lines, the count 3 rules parsed and 0 lines skipped, a table marking each line Added, and the button Import 3 rules._

A site can have up to 2,000 rules. **Export** downloads the saved rules in the same three formats.

## Automate this

**API:** [Replace a site's redirects](https://docs.corefinity.com/api/reference/site-settings/replace-site-redirects.md), scope `write`

```bash
curl -X PUT https://manage.corefinity.com/api/corestack/sites/1042/redirects \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "rules": [
      {
        "enabled": true,
        "from": "/about-us.html",
        "id": 41,
        "keep_query": true,
        "note": "Old brochure page",
        "status": 301,
        "to": "/about",
        "type": "exact"
      },
      {
        "enabled": true,
        "from": "/blog",
        "hosts": [
          "www.harbourandfinch.example.com"
        ],
        "keep_query": true,
        "status": 301,
        "to": "/news",
        "type": "prefix"
      }
    ],
    "version": 12
  }'
```

**MCP:** [`corestack_redirects_update`](https://docs.corefinity.com/mcp/tools/corestack_redirects_update.md), scope `write`

```json
{
  "name": "corestack_redirects_update",
  "arguments": {
    "site_id": 4211,
    "version": 3,
    "rules": [
      {
        "type": "exact",
        "from": "/old-page",
        "to": "/new-page",
        "status": 301,
        "keep_query": true,
        "enabled": true
      }
    ]
  }
}
```

**Control Panel:** Managed Websites › your site › Site settings › Redirects ([https://manage.corefinity.com/go/redirects](https://manage.corefinity.com/go/redirects))

## Related

- [Add a domain](/guides/sites/go-live/add-a-domain): Attach a domain to a site.
- [Logs](/guides/sites/logs-and-monitoring/logs): Read and narrow a site's logs.
- [Convert .htaccess](/guides/sites/site-settings/convert-htaccess): Turn an .htaccess file into rules.
