> For the complete documentation index, see [llms.txt](https://clients.medianova.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://clients.medianova.com/products/dns/redirect/redirect-options.md). Agents can also search and read this documentation through its [MCP server](https://clients.medianova.com/~gitbook/mcp).

# Redirect Options

Configure how Medianova Redirect handles URL paths, query parameters, and HTTPS connections when forwarding requests to a destination URL.

**Redirect Options** provides additional controls for redirect rules configured in the Medianova Control Panel. These settings determine which parts of the original request are preserved and how HTTPS is handled.

## Path Forwarding

**Path Forwarding** determines how the path component of the source URL is transferred to the destination URL.

Three modes are available:

<table><thead><tr><th width="121.5">Mode</th><th width="385.5">Behavior</th><th>Example</th></tr></thead><tbody><tr><td><strong>All</strong></td><td>Preserves the complete path from the original request.</td><td><code>oldsite.com/docs/page1</code> → <code>newsite.com/docs/page1</code></td></tr><tr><td><strong>None</strong></td><td>Discards the original path and redirects to the configured destination URL.</td><td><code>oldsite.com/docs/page1</code> → <code>newsite.com</code></td></tr><tr><td><strong>Capture</strong></td><td>Forwards only the variable portion matched by a wildcard or source pattern.</td><td><code>oldsite.com/docs/page1</code> → <code>newsite.com/page1</code></td></tr></tbody></table>

### All

Select **All** to preserve the complete request path when redirecting to the destination domain.

For example:

* **Source:** `https://oldsite.com/docs/page1`
* **Destination:** `https://newsite.com/docs/page1`

This mode is suitable for domain migrations where the existing URL structure should remain unchanged.

### None

Select **None** to discard the original request path and redirect to the configured destination URL.

For example:

* **Source:** `https://oldsite.com/docs/page1`
* **Destination:** `https://newsite.com`

This mode is suitable when multiple source URLs should redirect to a single destination.

### Capture

Select **Capture** to forward only the variable portion of a matching source pattern.

For example, consider the following source pattern:

```
https://oldsite.com/docs/*
```

A request to:

```
https://oldsite.com/docs/page1
```

Can be redirected to:

```
https://newsite.com/page1
```

The fixed `/docs/` portion is excluded, while the matched `page1` portion is preserved.

{% hint style="info" %}
Capture requires the incoming request to match the configured source pattern. Requests that do not match the pattern are not redirected by that rule.
{% endhint %}

## Query Forwarding

**Query Forwarding** determines whether the original request's query string is included in the destination URL.

<table><thead><tr><th width="198">Setting</th><th>Behavior</th></tr></thead><tbody><tr><td><strong>Enabled</strong></td><td>Preserves the original query string when redirecting to the destination.</td></tr><tr><td><strong>Disabled</strong></td><td>Excludes the original query string from the redirected URL.</td></tr></tbody></table>

### Enabled

When Query Forwarding is enabled, query parameters are preserved.

For example:

```
https://example.com/products?page=2
```

Redirects to:

```
https://destination.com/products?page=2
```

Use this option when the destination requires the original query parameters to process the request.

### Disabled

When Query Forwarding is disabled, the original query parameters are not forwarded.

For example:

```
https://example.com/products?page=2
```

Redirects to:

```
https://destination.com/products
```

Use this option when the destination does not require the original query parameters.

{% hint style="info" %}
Enable Query Forwarding only when the destination can process the forwarded parameters. Query strings may contain tracking identifiers or other request-specific values that are unnecessary at the destination.
{% endhint %}

## HTTPS Options

Redirect supports two HTTPS-related settings: **Enable HTTPS** and **Force HTTPS**.

These settings control different aspects of secure request handling.

<table><thead><tr><th width="163.5">Option</th><th>Behavior</th></tr></thead><tbody><tr><td><strong>Enable HTTPS</strong></td><td>Allows the redirect source domain to accept HTTPS connections using an automatically provisioned SSL/TLS certificate.</td></tr><tr><td><strong>Force HTTPS</strong></td><td>Redirects incoming HTTP requests to HTTPS before applying the configured destination redirect. Requires Enable HTTPS.</td></tr></tbody></table>

### Enable HTTPS

Enable **Enable HTTPS** to allow clients to access the redirect source domain over HTTPS.

Medianova automatically provisions an SSL/TLS certificate for the configured redirect domain.

For example:

```
https://oldsite.com
```

Can redirect to:

```
https://newsite.com
```

Enable HTTPS establishes secure connectivity to the redirect source domain. It does not independently require incoming HTTP requests to use HTTPS.

### Force HTTPS

Enable **Force HTTPS** to redirect incoming HTTP requests to their HTTPS equivalent before forwarding them to the configured destination.

For example:

```
http://oldsite.com
```

Redirects to:

```
https://oldsite.com
```

The HTTPS request is then redirected to the configured destination:

```
https://newsite.com
```

{% hint style="warning" %}
**Force HTTPS** requires **Enable HTTPS**. Ensure the SSL/TLS certificate is available for the source domain before enforcing HTTPS.

Force HTTPS controls the protocol used to access the redirect source domain. The destination URL must also use HTTPS if the final connection is required to be encrypted.
{% endhint %}

## Important Notes

* **Path Forwarding** controls which portions of the original URL path are preserved.
* **Query Forwarding** controls whether the original query parameters are included in the destination URL.
* **Enable HTTPS** allows secure connections to the redirect source domain.
* **Force HTTPS** redirects HTTP requests to HTTPS and requires Enable HTTPS.
* The selected redirect type determines whether the redirect is permanent or temporary. See Types of Redirects for HTTP 301 and 302 behavior.

## Related Concepts

* [Getting Started with Redirect](https://clients.medianova.com/products/dns/redirect/getting-started-with-redirect.md)
* [Manage Redirect](https://clients.medianova.com/products/dns/redirect/manage-redirect.md)
* [Types of Redirects](https://clients.medianova.com/products/dns/redirect/types-of-redirects.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://clients.medianova.com/products/dns/redirect/redirect-options.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
