Skip to content

Commit 30499fd

Browse files
authored
Fix redirects from .com to .org. (#2271)
1 parent e0ac46d commit 30499fd

1 file changed

Lines changed: 17 additions & 12 deletions

File tree

netlify.toml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,23 @@ Content-Disposition = "inline"
132132

133133
# https://docs.netlify.com/routing/redirects/#syntax-for-the-netlify-configuration-file
134134

135+
# Redirect the letsencrypt.com domain (and its www subdomain) to the canonical
136+
# letsencrypt.org site. These must come first and be forced so they take
137+
# precedence over the path-based rules below; otherwise those rules serve some
138+
# .com pages with a 200 instead of redirecting.
139+
# https://github.com/letsencrypt/website/issues/2266
140+
[[redirects]]
141+
from = "https://letsencrypt.com/*"
142+
to = "https://letsencrypt.org/:splat"
143+
status = 301
144+
force = true
145+
146+
[[redirects]]
147+
from = "https://www.letsencrypt.com/*"
148+
to = "https://letsencrypt.org/:splat"
149+
status = 301
150+
force = true
151+
135152
[[redirects]]
136153
from = "/jobs"
137154
to = "https://www.abetterinternet.org/careers"
@@ -324,18 +341,6 @@ to = "https://letsencrypt.org/docs/lencr.org"
324341
status = 302
325342
force = true
326343

327-
[[redirects]]
328-
from = "https://letsencrypt.com/*"
329-
to = "https://letsencrypt.org/"
330-
status = 302
331-
force = true
332-
333-
[[redirects]]
334-
from = "https://www.letsencrypt.com/*"
335-
to = "https://letsencrypt.org/"
336-
status = 302
337-
force = true
338-
339344
[[redirects]]
340345
# Certbot (and other) clients link to the Terms of Service with a `.` after them
341346
# This is a convenience to allow copying the URL with that `.`

0 commit comments

Comments
 (0)