File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ]]
136153from = " /jobs"
137154to = " https://www.abetterinternet.org/careers"
@@ -324,18 +341,6 @@ to = "https://letsencrypt.org/docs/lencr.org"
324341status = 302
325342force = 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 `.`
You can’t perform that action at this time.
0 commit comments