From b06e2379fbed54f8f7f5e17b87fc2221806a4824 Mon Sep 17 00:00:00 2001 From: ToriLindsay Date: Thu, 11 Sep 2025 11:38:13 +0100 Subject: [PATCH] zone level nav updates --- .../serve-from-custom-domains.mdx | 30 ++++++++----------- .../serve-images-custom-paths.mdx | 8 ++--- 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/src/content/docs/images/manage-images/serve-images/serve-from-custom-domains.mdx b/src/content/docs/images/manage-images/serve-images/serve-from-custom-domains.mdx index 8408a54ba3f0a5f..2b2ab28b317a4fd 100644 --- a/src/content/docs/images/manage-images/serve-images/serve-from-custom-domains.mdx +++ b/src/content/docs/images/manage-images/serve-images/serve-from-custom-domains.mdx @@ -38,25 +38,23 @@ This example lets you rewrite a request from `example.com/images` to `example.co To create a rule: -1. In the Cloudflare dashboard, go to the **Account home** page. +1. In the Cloudflare dashboard, go to the **Rules Overview** page. - + -2. Select your domain. -3. Go to **Rules** > **Overview**. -4. Next to **URL Rewrite Rules**, select **Create rule**. -5. Under **If incoming requests match**, select **Wildcard pattern** and enter the following **Request URL** (update with your own domain): +2. Next to **URL Rewrite Rules**, select **Create rule**. +3. Under **If incoming requests match**, select **Wildcard pattern** and enter the following **Request URL** (update with your own domain): ```txt https://example.com/images/* ``` -6. Under **Then rewrite the path and/or query** > **Path**, enter the following values (using your account hash): +4. Under **Then rewrite the path and/or query** > **Path**, enter the following values (using your account hash): - **Target path**: [`/`] `images/*` - **Rewrite to**: [`/`] `cdn-cgi/imagedelivery//${1}` -7. Select **Deploy** when you are done. +5. Select **Deploy** when you are done. ### Advanced version @@ -68,17 +66,15 @@ This example lets you rewrite a request from `example.com/images/some-image-id/w To create a rule: -1. In the Cloudflare dashboard, go to the **Account home** page. +1. In the Cloudflare dashboard, go to the **Rules Overview** page. - + -2. Select your domain. -3. Go to **Rules** > **Overview**. -4. Next to **URL Rewrite Rules**, select **Create rule**. -5. Under **If incoming requests match**, select **Custom filter expression** and then select **Edit expression**. -6. In the text field, enter `(http.request.uri.path matches "^/images/.*$")`. -7. Under **Path**, select **Rewrite to**. -8. Select _Dynamic_ and enter the following in the text field. +2. Next to **URL Rewrite Rules**, select **Create rule**. +3. Under **If incoming requests match**, select **Custom filter expression** and then select **Edit expression**. +4. In the text field, enter `(http.request.uri.path matches "^/images/.*$")`. +5. Under **Path**, select **Rewrite to**. +6. Select _Dynamic_ and enter the following in the text field. ```txt regex_replace( diff --git a/src/content/docs/images/transform-images/serve-images-custom-paths.mdx b/src/content/docs/images/transform-images/serve-images-custom-paths.mdx index 9a5807939972458..39efe86f0f6ec61 100644 --- a/src/content/docs/images/transform-images/serve-images-custom-paths.mdx +++ b/src/content/docs/images/transform-images/serve-images-custom-paths.mdx @@ -18,13 +18,11 @@ This page covers examples for the following scenarios: - Transform every image requested on your zone with Images To create a rule: -1. In the Cloudflare dashboard, go to the **Account home** page. +1. In the Cloudflare dashboard, go to the **Rules Overview** page. - + -2. Select your domain. -3. Go to **Rules** > **Overview**. -4. Select **Create rule** next to **URL Rewrite Rules**. +2. Select **Create rule** next to **URL Rewrite Rules**. ## Before you start