Skip to content

Commit cf21ea5

Browse files
committed
Add cross links
1 parent 6c21508 commit cf21ea5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/content/docs/cloudflare-one/policies/gateway/block-page.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ To redirect users to a non-Cloudflare block page:
4343

4444
Gateway will now redirect users to a custom page when user traffic matches a Block policy with the block page configured.
4545

46+
To create an HTTP policy to redirect URLs, refer to the [Redirect action](/cloudflare-one/policies/gateway/http-policies/#redirect).
47+
4648
#### Policy context
4749

4850
<Render file="gateway/policy-context" />

src/content/docs/cloudflare-one/policies/gateway/http-policies/index.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,15 @@ API value: `redirect`
9595

9696
The Redirect action allows you to redirect matched HTTP requests to a different URL you specify. For example, if your users browse to the public web page of a SaaS app, you can redirect them to your own self-hosted instance, a single sign-on page, or an internal policy page.
9797

98+
To redirect URLs with a Block action and the block page, refer to [Redirect to a block page](/cloudflare-one/policies/gateway/block-page/#redirect-to-a-block-page).
99+
98100
#### Policy settings
99101

100102
In **Policy URL redirect**, you can define what URL to redirect matched requests to. The redirect URL can contain paths and queries. For example, you can redirect `example.com` to `cloudflare.com/path/to/page?querystring=x`.
101103

102104
<Render file="gateway/policy-context" />
103105

104-
When you turn on **Preserve original path and query string**, Gateway will append the original path and query string to the redirected URL. Paths and queries in the redirect URL take precedence. For example, if the original URL is `example.com/path/to/page?querystring=X` and the redirect URL is `cloudflare.com/redirect-path?querystring=Y`, Gateway will redirect requests to:
106+
When you turn on **Preserve original path and query string**, Gateway will append the original path and query string to the redirected URL. Paths and queries in the redirect URL take precedence over the original URL. For example, if the original URL is `example.com/path/to/page?querystring=X` and the redirect URL is `cloudflare.com/redirect-path?querystring=Y`, Gateway will redirect requests to:
105107

106108
```txt "cloudflare.com/redirect-path" "?querystring=Y"
107109
cloudflare.com/redirect-path/path/to/page?querystring=Y

0 commit comments

Comments
 (0)