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
Copy file name to clipboardExpand all lines: src/content/docs/rules/url-forwarding/examples/redirect-all-another-domain.mdx
+18-12Lines changed: 18 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,20 +13,26 @@ description: Create a redirect rule to redirect all requests to a different
13
13
14
14
In this example the original domain was replaced with a different domain. All functionality was maintained, except for the HTTP service (port 80) which was discontinued.
15
15
16
-
1. Create a Bulk Redirect List with the following URL redirect:
16
+
<Example>
17
17
18
-
-**Source URL**: `example.com/`
19
-
-**Target URL**: `https://example.net/`
20
-
-**Subpath matching**: Enabled
21
-
-**Preserve query string**: Enabled
18
+
**When incoming requests match**
22
19
23
-
2. Create a Bulk Redirect Rule that enables this list.
20
+
-**Wildcard pattern**
21
+
-**Request URL**: `http*://example.com/*`
22
+
23
+
**Then**
24
+
25
+
-**Target URL**: `https://example.net/${2}`
26
+
-**Status code:**_301_
27
+
-**Preserve query string:** Enabled
28
+
29
+
</Example>
24
30
25
31
This configuration will perform the following redirects:
0 commit comments