# A redirect must be given a location with the Location header.

## What went wrong?

[Section titled “What went wrong?”](#what-went-wrong)

A redirect must be given a location with the `Location` header.

**See Also:**

* [Astro.redirect](/en/reference/api-reference/#redirect)