Sites
Redirects
Redirect requests from one path on a site to another URL, or proxy them to another app. Use redirects to keep old links and search rankings working when URLs change.
Open a site and select Redirects in the site sidebar. The table lists every rule with its from path, destination, mode, status, and creation date.
Create a redirect
- Click Create Redirect.
- Fill in the form:
| Field | Description |
|---|---|
| Mode | The kind of redirect, or Proxy. See below. |
| From | The path on this site to match, for example /old-path. |
| To | Where to send the request. A full URL such as https://new-url.com for a redirect, or an upstream address such as http://127.0.0.1:3000 for a proxy. |
| Support WebSocket connections | Proxy only. Adds the upgrade headers WebSocket traffic needs to pass through. |
- Click Save changes.
The rule is added to the site's web server config in the background. Its status changes to Ready when it's live.
Modes
| Mode | Use it when |
|---|---|
| 301 - Moved Permanently | A page has moved for good. Browsers and search engines remember it. |
| 302 - Found | A page has moved temporarily. |
| 307 - Temporary Redirect | Like 302, but keeps the request method, so a form POST stays a POST. |
| 308 - Permanent Redirect | Like 301, but keeps the request method. |
| Proxy - Forward the request upstream | Serve another app under this path without changing the URL, for example a Node.js app on a local port. |
Browsers cache 301 and 308 redirects. Test with 302 or 307 first, and switch to a permanent mode once the rule is right.
Edit or delete a redirect
Open the actions menu on a rule and click Edit to change where it points or switch it between a redirect and a proxy, or Delete to remove it.
Statuses
| Status | Meaning |
|---|---|
| Creating | The rule is being added. |
| Ready | The rule is live. |
| Failed | The rule couldn't be applied. Check the server logs. |
| Deleting | The rule is being removed. |

