Redirects

Redirects let you send visitors from one URL to another. This is useful when you move pages, rename files or whatever else you need.

Format

Redirects are defined as rules in your project settings, one per line:

/source/ /destination/ 301

Each line has three parts:

  • Source; the path to match (e.g. /old-page/)
  • Destination; where to send visitors (e.g. /new-page/)
  • Code; the HTTP status code (typically 301 for permanent or 302 for temporary)

Example

/old-blog-post/ /blog/new-post/ 301
/outdated-page/ / 302

Managing redirects

Go to your project edit page and find the Redirects section. Edit the rules and save. Changes take effect immediately.