> For the complete documentation index, see [llms.txt](https://docs.flexidomain.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flexidomain.in/redirections/creating-domain-redirections.md).

# Creating domain redirections

There are scenarios when you don't want your users to land on a particular page, but instead redirected to a different page altogether. for eg, if a user visits your landing page, you may first want to serve them with a Privacy Policy page. This is where domain redirections come into play.

A redirection redirects a user from one page to another, in the same website.

After [adding a domain inside your project](/custom-domains-setup/adding-a-domain-to-a-project.md), you can start creating redirections for this specific domain. It's an optional step and should ONLY be performed if really required. Else, it can cause issues with your website, such website going into a loop of redirects, etc.

Follow below steps to create a custom redirect.

1. **Click on the domain for which you want to create redirection**. Then choose 'Add redirection'.

<figure><img src="/files/aYBcXGQ7BIuT8tRJnfzC" alt="" width="563"><figcaption></figcaption></figure>

2. A new screen will open that will display all your existing Redirects, if any. Click on 'Add Redirect'. \
   Add the start point and destination point in that. It should start with '/'.\
   '/' signifies the root page of your website. And if you type '/privacy-policy', it signifies the privacy policy page of your website (it can be a different url for your website).\
   \
   So, decide the start point like when a user visits '/this-page', then redirect them to '/that-page'.

<figure><img src="/files/CYKxdw8wUFRWNjMsBr4F" alt="" width="563"><figcaption></figcaption></figure>

This feature is very powerful, but at the same time should be used with caution.

{% hint style="danger" %}
Note:

1. Redirections should **ONLY** be performed if really required. Else, it can cause issues with your website, such website going into a loop of redirects, etc.
2. The source and destination page should start with '/'. \
   '/' signifies the landing page or the root page of your website.
   {% endhint %}


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.flexidomain.in/redirections/creating-domain-redirections.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
