---
title: Adding redirect rules
description: Add a redirect rule to specify a URL that a user agent should request in response to being denied access to the requested resource.
component: pingaccess
version: 9.1
page_id: pingaccess:pingaccess_user_interface_reference_guide:pa_adding_redirect_rules
canonical_url: https://docs.pingidentity.com/pingaccess/9.1/pingaccess_user_interface_reference_guide/pa_adding_redirect_rules.html
llms_txt: https://docs.pingidentity.com/pingaccess/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: August 19, 2025
section_ids:
  about-this-task: About this task
  steps: Steps
---

# Adding redirect rules

Add a redirect rule to specify a URL that a user agent should request in response to being denied access to the requested resource.

## About this task

You can apply redirect rules to one or more applications.

## Steps

1. Click **Access**, then go to **Rules > Rules**.

2. Click **[icon: plus, set=fa]Add Rule**.

3. In the **Name** field, enter a unique name, up to 64 characters long.

   Special characters and spaces are allowed.

4. In the **Type** list, select **Redirect**.

5. In the **Response Status Code** field, specify the response status code you want to associate with the redirect.

   The default is `302`.

6. In the **URL** field, enter the URL you want to redirect requests to.

   You can use either an absolute or a relative URL:

   * If you use an absolute URL, it must include the `http/https` prefix.

   * If you use a relative URL, it must begin with a slash. You can specify the URL with or without defining the port.

7. To opt out of automatic URL encoding, deselect the **Encode URL** checkbox.

   Learn more in the **Opt out of automatic URL encoding** release note in [PingAccess 8.1 (June 2024)](../release_notes/pa_release_notes.html#previous-releases).

8. Click **Save**.
