> ## Documentation Index
> Fetch the complete documentation index at: https://dotnetdocs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RedirectConfig

> Represents a URL redirect configuration for the Mintlify documentation site.

## Definition

**Assembly:** Mintlify.Core.dll

**Namespace:** Mintlify.Core.Models

**Inheritance:** System.Object

## Syntax

```csharp theme={"dark"}
Mintlify.Core.Models.RedirectConfig
```

## Summary

Represents a URL redirect configuration for the Mintlify documentation site.

## Remarks

This configuration defines how requests to specific paths should be redirected
to different URLs, useful for maintaining backward compatibility or reorganizing content.

## Constructors

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> .ctor

#### Syntax

```csharp theme={"dark"}
public RedirectConfig()
```

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> .ctor <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public Object()
```

## Properties

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Destination

Gets or sets the destination path where requests should be redirected.

#### Syntax

```csharp theme={"dark"}
public string Destination { get; set; }
```

#### Property Value

Type: `string`

#### Remarks

Specifies where users should be redirected when they visit the source path.
Can be a relative path (e.g., "/new-page") or an absolute URL
(e.g., "[https://example.com/page](https://example.com/page)"). This is a required field.

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Permanent

Gets or sets whether the redirect is permanent (301) or temporary (302).

#### Syntax

```csharp theme={"dark"}
public System.Nullable<bool> Permanent { get; set; }
```

#### Property Value

Type: `System.Nullable<bool>`

#### Remarks

When true, returns a 301 (Moved Permanently) status code, indicating to search
engines that the move is permanent. When false or not specified, returns a 302
(Found) status code for temporary redirects. Permanent redirects are better for SEO
when content has permanently moved.

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Source

Gets or sets the source path that should be redirected.

#### Syntax

```csharp theme={"dark"}
public string Source { get; set; }
```

#### Property Value

Type: `string`

#### Remarks

Specifies the original path that users might visit. When a request is made
to this path, it will be automatically redirected to the destination.
Should be a relative path starting with "/" (e.g., "/old-page"). This is a required field.

## Methods

### <Icon icon="code-fork" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Equals <Badge color="gray">Inherited</Badge> <Badge color="orange">Virtual</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public virtual bool Equals(object obj)
```

#### Parameters

| Name  | Type      | Description |
| ----- | --------- | ----------- |
| `obj` | `object?` | -           |

#### Returns

Type: `bool`

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Equals <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name   | Type      | Description |
| ------ | --------- | ----------- |
| `objA` | `object?` | -           |
| `objB` | `object?` | -           |

#### Returns

Type: `bool`

### <Icon icon="code-fork" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GetHashCode <Badge color="gray">Inherited</Badge> <Badge color="orange">Virtual</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GetType <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> MemberwiseClone <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> ReferenceEquals <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name   | Type      | Description |
| ------ | --------- | ----------- |
| `objA` | `object?` | -           |
| `objB` | `object?` | -           |

#### Returns

Type: `bool`

### <Icon icon="code-fork" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> ToString <Badge color="gray">Inherited</Badge> <Badge color="orange">Virtual</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public virtual string ToString()
```

#### Returns

Type: `string?`
