---
url: https://gudhub.com/ru/docs/ssr-ssg/website/configs/redirects-config/
title: "Redirects Config\n                #"
description: "The redirects configuration defines URL redirection rules for a website, ensuring smooth navigation and proper handling of outdated or changed URLs. This is cri"
lang: uk
updated: 2026-09-11T12:48:50.737Z
---

# Redirects Config [#](https://gudhub.com/ru/docs/ssr-ssg/website/configs/redirects-config/#redirects-config)

The `redirects` configuration defines URL redirection rules for a website, ensuring smooth navigation and proper handling of outdated or changed URLs. This is critical for maintaining a good user experience, improving SEO rankings, and avoiding broken links.

## **Structure of Redirects** [#](https://gudhub.com/ru/docs/ssr-ssg/website/configs/redirects-config/#structure-of-redirects)

Each redirection rule is represented as an object with the following properties:

| **Property Name** | **Type** | **Description** |
| :-- | :-- | :-- |
| `from` | `string` | The original URL path to be redirected. |
| `to` | `string` | The target URL path where the user should be sent. |

Копировать

```javascript
export const redirects = [
    {
        from: 'string',
        to: 'string'
    },
];
```
