You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retaining the example URLs from the original Bulk Redirect instructions, replace Bulk Redirect with an easier-to-use Wildcard Redirect Rule.
---------
Co-authored-by: Pedro Sousa <[email protected]>
Copy file name to clipboardExpand all lines: src/content/docs/rules/url-forwarding/examples/redirect-all-different-domain-root.mdx
+20-18Lines changed: 20 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,30 +8,32 @@ description: Create a redirect rule to redirect all URLs for a domain to point
8
8
to the root of a new domain, including any subdomains of the old domain.
9
9
---
10
10
11
-
import { Steps } from"~/components";
11
+
import { Example } from"~/components";
12
12
13
13
In this example, an old website was discontinued and replaced by a new one in a different domain. The functionality is different, and all URLs should now point to the root of the new domain. The same applies to any subdomains of the old domain.
14
14
15
-
<Steps>
15
+
[Create a redirect rule](/rules/url-forwarding/single-redirects/create-dashboard/) with the following configuration:
16
16
17
-
1. Create a Bulk Redirect List with the following URL redirect:
17
+
<Example>
18
18
19
-
-**Source URL**: `example.com/`
20
-
-**Target URL**: `https://example.net/`
21
-
-**Subpath matching**: Enabled
22
-
-**Include subdomains**: Enabled
23
-
-**Preserve path suffix**: Disabled
19
+
**When incoming requests match**
24
20
25
-
2. Create a Bulk Redirect Rule that enables this list.
21
+
-**Wildcard pattern**
22
+
-**Request URL**: `http*://*example.com/*`
26
23
27
-
</Steps>
24
+
**Then**
28
25
29
-
This configuration will perform the following redirects:
0 commit comments