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
Replacing unnecessarily cumbersome Bulk Redirect for a hostname with an easier Single-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-another-domain.mdx
+19-15Lines changed: 19 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,28 +10,32 @@ description: Create a redirect rule to redirect all requests to a different
10
10
service (port 80).
11
11
---
12
12
13
-
import { Steps } from"~/components";
13
+
import { Example } from"~/components";
14
14
15
15
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.
16
16
17
-
<Steps>
17
+
[Create a redirect rule](/rules/url-forwarding/single-redirects/create-dashboard/) with the following configuration:
18
18
19
-
1. Create a Bulk Redirect List with the following URL redirect:
19
+
<Example>
20
20
21
-
-**Source URL**: `example.com/`
22
-
-**Target URL**: `https://example.net/`
23
-
-**Subpath matching**: Enabled
24
-
-**Preserve query string**: Enabled
21
+
**When incoming requests match**
25
22
26
-
2. Create a Bulk Redirect Rule that enables this list.
23
+
-**Wildcard pattern**
24
+
-**Request URL**: `http*://example.com/*`
27
25
28
-
</Steps>
26
+
**Then**
27
+
28
+
-**Target URL**: `https://example.net/${2}`
29
+
-**Status code:**_301_
30
+
-**Preserve query string:** Enabled
31
+
32
+
</Example>
29
33
30
34
This configuration will perform the following redirects:
0 commit comments