Skip to content

Commit 6fa6835

Browse files
pedrosousapatriciasantaana
authored andcommitted
[Docs] Fix mermaid diagrams with URLs (#17139)
1 parent 5d2a5a7 commit 6fa6835

File tree

3 files changed

+58
-71
lines changed

3 files changed

+58
-71
lines changed

src/content/docs/learning-paths/get-started-free/onboarding/check-ssl.mdx

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,18 @@ title: Check domain SSL/TLS
33
pcx_content_type: learning-unit
44
sidebar:
55
order: 4
6-
76
---
87

9-
import { Details, Render } from "~/components"
8+
import { Details, Render } from "~/components";
109

1110
Once you [add and activate](/learning-paths/get-started-free/onboarding/add-and-activate/) your domain at Cloudflare, you also should check your domain's SSL/TLS certificate is working correctly.
1211

13-
1412
<Details header="What are SSL/TLS certificates?">
1513

1614
SSL/TLS certificates let websites use `https` at the start of the URL (instead of `http`), which is a more secure connection protocol. HTTPS is good for website security, user privacy, SEO, and much more.
1715

1816
For more details on SSL/TLS, refer to the [Learning Center](https://www.cloudflare.com/learning/ssl/what-is-ssl/).
1917

20-
2118
</Details>
2219

2320
By default, Cloudflare issues — and renews — free, unshared, publicly trusted **Universal SSL** certificates to all domains added to and activated on Cloudflare.
@@ -37,21 +34,21 @@ Sometimes, domains added to Cloudflare can experience issues in SSL/TLS certific
3734
```mermaid
3835
flowchart TD
3936
accTitle: Potential SSL/TLS issues
40-
A[Request to <code>https://example.com</code>] --> B[<code>ERR_SSL_VERSION_OR_CIPHER_MISMATCH</code>]
37+
A[Request to <code>https://</code><code>example.com</code>] --> B[<code>ERR_SSL_VERSION_OR_CIPHER_MISMATCH</code>]
4138
B --> C[Domain or subdomain not covered by certificate]
4239
A --> D[<code>ERR_TOO_MANY_REDIRECTS</code>]
4340
D --> E[Redirect loop between <code>http</code> and <code>https</code>]
4441
A --> F[Error <code>525</code> or <code>526</code>]
4542
F --> G[Mismatch origin and Cloudflare settings]
4643
```
4744

48-
<br/>
45+
<br />
4946

5047
For more details on these errors and how to fix them, refer to the following resources:
5148

52-
* [`ERR_SSL_VERSION_OR_CIPHER_MISMATCH`](/ssl/troubleshooting/version-cipher-mismatch/)
53-
* [`ERR_TOO_MANY_REDIRECTS`](/ssl/troubleshooting/too-many-redirects/)
54-
* [Cloudflare 5xx errors](/support/troubleshooting/cloudflare-errors/troubleshooting-cloudflare-5xx-errors/)
55-
* [Common SSL/TLS errors](/ssl/troubleshooting/general-ssl-errors/)
56-
* [Universal SSL/TLS certificates](/ssl/edge-certificates/universal-ssl/)
57-
* [Cloudflare encryption modes](/ssl/origin-configuration/ssl-modes/)
49+
- [`ERR_SSL_VERSION_OR_CIPHER_MISMATCH`](/ssl/troubleshooting/version-cipher-mismatch/)
50+
- [`ERR_TOO_MANY_REDIRECTS`](/ssl/troubleshooting/too-many-redirects/)
51+
- [Cloudflare 5xx errors](/support/troubleshooting/cloudflare-errors/troubleshooting-cloudflare-5xx-errors/)
52+
- [Common SSL/TLS errors](/ssl/troubleshooting/general-ssl-errors/)
53+
- [Universal SSL/TLS certificates](/ssl/edge-certificates/universal-ssl/)
54+
- [Cloudflare encryption modes](/ssl/origin-configuration/ssl-modes/)

src/content/docs/ssl/troubleshooting/too-many-redirects.mdx

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ sidebar:
55
order: 3
66
head: []
77
description: Learn how to troubleshoot ERR_TOO_MANY_REDIRECTS when using Cloudflare SSL/TLS.
8-
98
---
109

1110
After you [add a new domain](/fundamentals/setup/manage-domains/add-site/) to Cloudflare, your visitors' browsers might display `ERR_TOO_MANY_REDIRECTS` or `The page isn’t redirecting properly` errors.
@@ -15,32 +14,30 @@ This error occurs when visitors get stuck in a redirect loop.
1514
```mermaid
1615
flowchart LR
1716
accTitle: Redirect loops illustration
18-
A[Request for <code>http://example.com</code>] --> B[Redirect to <code>https://example.com</code>]
19-
B --> C[Redirect to <code>http://example.com</code>]
17+
A[Request for <code>http://</code><code>example.com</code>] --> B[Redirect to <code>https://</code><code>example.com</code>]
18+
B --> C[Redirect to <code>http://</code><code>example.com</code>]
2019
C --> B
2120
subgraph Redirect Loop
2221
B
2322
C
2423
end
2524
```
2625

27-
<br/>
26+
<br />
2827

2928
This error is commonly caused by:
3029

31-
* A misconfiguration of your [SSL/TLS Encryption mode](#encryption-mode-misconfigurations).
32-
* Various settings in [**SSL/TLS** > **Edge Certificates**](#edge-certificate-settings).
33-
* A misconfigured [redirect rule](#redirect-rules).
30+
- A misconfiguration of your [SSL/TLS Encryption mode](#encryption-mode-misconfigurations).
31+
- Various settings in [**SSL/TLS** > **Edge Certificates**](#edge-certificate-settings).
32+
- A misconfigured [redirect rule](#redirect-rules).
3433

3534
:::note
3635

37-
3836
For assistance determining if your origin web server is responding with redirects, contact your hosting provider or site administrator.
3937

40-
4138
:::
4239

43-
***
40+
---
4441

4542
## Encryption mode misconfigurations
4643

@@ -57,8 +54,8 @@ Redirect loops will occur if your origin server automatically redirects all HTTP
5754
```mermaid
5855
flowchart TD
5956
accTitle: Redirect loops illustration for Flexible mode
60-
A[Request for <code>https://example.com</code>] --> B[Encryption mode redirects to <code>http://example.com</code>]
61-
B --> C[Origin server redirects to <code>https://example.com</code>]
57+
A[Request for <code>https://</code><code>example.com</code>] --> B[Encryption mode redirects to <code>http://</code><code>example.com</code>]
58+
B --> C[Origin server redirects to <code>https://</code><code>example.com</code>]
6259
C --> B
6360
subgraph Cloudflare
6461
B
@@ -68,7 +65,7 @@ C
6865
end
6966
```
7067

71-
<br/>
68+
<br />
7269

7370
To solve this issue, either remove HTTPS redirects from your origin server or update your SSL/TLS Encryption Mode to be [**Full**](/ssl/origin-configuration/ssl-modes/full/) or higher (requires an SSL certificate configured at your origin server).
7471

@@ -81,8 +78,8 @@ Redirect loops will occur if your origin server automatically redirects all HTTP
8178
```mermaid
8279
flowchart TD
8380
accTitle: Redirect loops illustration for Full or Full (strict) mode
84-
A[Request for <code>http://example.com</code>] --> B[Encryption mode redirects to <code>https://example.com</code>]
85-
B --> C[Origin server redirects to <code>http://example.com</code>]
81+
A[Request for <code>http://</code><code>example.com</code>] --> B[Encryption mode redirects to <code>https://</code><code>example.com</code>]
82+
B --> C[Origin server redirects to <code>http://</code><code>example.com</code>]
8683
C --> B
8784
subgraph Cloudflare
8885
B
@@ -92,11 +89,11 @@ C
9289
end
9390
```
9491

95-
<br/>
92+
<br />
9693

9794
To solve this issue, remove HTTP redirects from your origin server.
9895

99-
***
96+
---
10097

10198
## Edge certificate settings
10299

@@ -109,8 +106,8 @@ Redirect loops will occur if your origin server automatically redirects all HTTP
109106
```mermaid
110107
flowchart TD
111108
accTitle: Redirect loops illustration for Always Use HTTPS
112-
A[Request for <code>http://example.com</code>] --> B[Always Use HTTPS redirects to <code>https://example.com</code>]
113-
B --> C[Origin server redirects to <code>http://example.com</code>]
109+
A[Request for <code>http://</code><code>example.com</code>] --> B[Always Use HTTPS redirects to <code>https://</code><code>example.com</code>]
110+
B --> C[Origin server redirects to <code>http://</code><code>example.com</code>]
114111
C --> B
115112
subgraph Cloudflare
116113
B
@@ -120,7 +117,7 @@ C
120117
end
121118
```
122119

123-
<br/>
120+
<br />
124121

125122
To solve this issue, remove HTTPS redirects from your origin server or [disable **Always Use HTTPS**](/ssl/edge-certificates/additional-options/always-use-https/).
126123

@@ -133,10 +130,10 @@ Redirect loops will occur if your origin server automatically redirects all HTTP
133130
```mermaid
134131
flowchart TD
135132
accTitle: Redirect loops illustration for HTTP Strict Transport Security
136-
A[Request for <code>https://example.com</code>] --> B[Encryption mode redirects to <code>http://example.com</code>]
137-
B --> C[HSTS redirects to <code>https://example.com</code>]
133+
A[Request for <code>https://</code><code>example.com</code>] --> B[Encryption mode redirects to <code>http://</code><code>example.com</code>]
134+
B --> C[HSTS redirects to <code>https://</code><code>example.com</code>]
138135
C --> B
139-
C --> D[Origin server redirects to <code>http://example.com</code>]
136+
C --> D[Origin server redirects to <code>http://</code><code>example.com</code>]
140137
D --> C
141138
subgraph Cloudflare
142139
B
@@ -147,13 +144,13 @@ D
147144
end
148145
```
149146

150-
<br/>
147+
<br />
151148

152149
To solve this issue, remove HTTPS redirects from your origin server and make sure your domain's encryption mode is [**Flexible**](/ssl/origin-configuration/ssl-modes/flexible/) or higher.
153150

154151
Alternatively, [disable **HTTP Strict Transport Security (HSTS)**](/ssl/edge-certificates/additional-options/http-strict-transport-security/).
155152

156-
***
153+
---
157154

158155
## Redirect rules
159156

@@ -162,23 +159,21 @@ Redirect loops can also occur if you have conflicting URL redirects.
162159
```mermaid
163160
flowchart TD
164161
accTitle: Redirect loops illustration for redirect rules
165-
A[Request for <code>https://a.example.com</code>] --> B[Redirect to <code>http://b.example.com</code>]
166-
B --> C[Redirect to <code>https://a.example.com</code>]
162+
A[Request for <code>https://</code><code>a.example.com</code>] --> B[Redirect to <code>http://</code><code>b.example.com</code>]
163+
B --> C[Redirect to <code>https://</code><code>a.example.com</code>]
167164
C --> B
168165
subgraph Cloudflare
169166
B
170167
C
171168
end
172169
```
173170

174-
<br/>
171+
<br />
175172

176173
To solve this issue, review your various [redirect rules](/rules/url-forwarding/) and [Page Rules](/rules/page-rules/) to make sure no rules are not in conflict with each other.
177174

178175
:::note
179176

180-
181-
To reduce the potential for redirect loops and [mixed content errors](/ssl/troubleshooting/mixed-content-errors/), Cloudflare recommends WordPress users to install the [Cloudflare WordPress plugin](https://wordpress.org/plugins/cloudflare/) at their origin web server and enable the *Automatic HTTPS rewrites* option within the plugin. Alternatively, Cloudflare recommends the [SSL insecure content fixer](https://en-gb.wordpress.org/plugins/ssl-insecure-content-fixer/) or [Really Simple SSL plugin](https://en-gb.wordpress.org/plugins/really-simple-ssl/).
182-
177+
To reduce the potential for redirect loops and [mixed content errors](/ssl/troubleshooting/mixed-content-errors/), Cloudflare recommends WordPress users to install the [Cloudflare WordPress plugin](https://wordpress.org/plugins/cloudflare/) at their origin web server and enable the _Automatic HTTPS rewrites_ option within the plugin. Alternatively, Cloudflare recommends the [SSL insecure content fixer](https://en-gb.wordpress.org/plugins/ssl-insecure-content-fixer/) or [Really Simple SSL plugin](https://en-gb.wordpress.org/plugins/really-simple-ssl/).
183178

184179
:::

0 commit comments

Comments
 (0)