Skip to content

Commit dacbc13

Browse files
authored
zone level nav updates (#25092)
1 parent a6ade34 commit dacbc13

File tree

2 files changed

+16
-22
lines changed

2 files changed

+16
-22
lines changed

src/content/docs/images/manage-images/serve-images/serve-from-custom-domains.mdx

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,23 @@ This example lets you rewrite a request from `example.com/images` to `example.co
3838

3939
To create a rule:
4040

41-
1. In the Cloudflare dashboard, go to the **Account home** page.
41+
1. In the Cloudflare dashboard, go to the **Rules Overview** page.
4242

43-
<DashButton url="/?to=/:account/home" />
43+
<DashButton url="/?to=/:account/:zone/rules/overview" />
4444

45-
2. Select your domain.
46-
3. Go to **Rules** > **Overview**.
47-
4. Next to **URL Rewrite Rules**, select **Create rule**.
48-
5. Under **If incoming requests match**, select **Wildcard pattern** and enter the following **Request URL** (update with your own domain):
45+
2. Next to **URL Rewrite Rules**, select **Create rule**.
46+
3. Under **If incoming requests match**, select **Wildcard pattern** and enter the following **Request URL** (update with your own domain):
4947

5048
```txt
5149
https://example.com/images/*
5250
```
5351

54-
6. Under **Then rewrite the path and/or query** > **Path**, enter the following values (using your account hash):
52+
4. Under **Then rewrite the path and/or query** > **Path**, enter the following values (using your account hash):
5553

5654
- **Target path**: [`/`] `images/*`
5755
- **Rewrite to**: [`/`] `cdn-cgi/imagedelivery/<ACCOUNT_HASH>/${1}`
5856

59-
7. Select **Deploy** when you are done.
57+
5. Select **Deploy** when you are done.
6058

6159
### Advanced version
6260

@@ -68,17 +66,15 @@ This example lets you rewrite a request from `example.com/images/some-image-id/w
6866

6967
To create a rule:
7068

71-
1. In the Cloudflare dashboard, go to the **Account home** page.
69+
1. In the Cloudflare dashboard, go to the **Rules Overview** page.
7270

73-
<DashButton url="/?to=/:account/home" />
71+
<DashButton url="/?to=/:account/:zone/rules/overview" />
7472

75-
2. Select your domain.
76-
3. Go to **Rules** > **Overview**.
77-
4. Next to **URL Rewrite Rules**, select **Create rule**.
78-
5. Under **If incoming requests match**, select **Custom filter expression** and then select **Edit expression**.
79-
6. In the text field, enter `(http.request.uri.path matches "^/images/.*$")`.
80-
7. Under **Path**, select **Rewrite to**.
81-
8. Select _Dynamic_ and enter the following in the text field.
73+
2. Next to **URL Rewrite Rules**, select **Create rule**.
74+
3. Under **If incoming requests match**, select **Custom filter expression** and then select **Edit expression**.
75+
4. In the text field, enter `(http.request.uri.path matches "^/images/.*$")`.
76+
5. Under **Path**, select **Rewrite to**.
77+
6. Select _Dynamic_ and enter the following in the text field.
8278

8379
```txt
8480
regex_replace(

src/content/docs/images/transform-images/serve-images-custom-paths.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@ This page covers examples for the following scenarios:
1818
- Transform every image requested on your zone with Images
1919

2020
To create a rule:
21-
1. In the Cloudflare dashboard, go to the **Account home** page.
21+
1. In the Cloudflare dashboard, go to the **Rules Overview** page.
2222

23-
<DashButton url="/?to=/:account/home" />
23+
<DashButton url="/?to=/:account/:zone/rules/overview" />
2424

25-
2. Select your domain.
26-
3. Go to **Rules** > **Overview**.
27-
4. Select **Create rule** next to **URL Rewrite Rules**.
25+
2. Select **Create rule** next to **URL Rewrite Rules**.
2826

2927
## Before you start
3028

0 commit comments

Comments
 (0)