# What is redirection?

### Redirecting the current page to a new page.

![](/files/7jkY11XM8eD5x6SsL27Q)

### Why do you need redirection?

* To redirect to the new URL when a page's URL changes
* To redirect an invalid subdomain to another domain
* To redirect to another page for log-in or authentication purposes

### There are two types of redirections as follows:

* **Redirection 301**

&#x20;     \- Redirect immediately without processing any server-side or client-side code

* **Redirection 302**

&#x20;    \- Redirect temporarily using a script or html tag


---

# Agent Instructions: 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:

```
GET https://portone.gitbook.io/docs-en/tips/redirect.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
