Skip to content

Commit 6f78329

Browse files
committed
Update about page
1 parent ba93fc3 commit 6f78329

File tree

1 file changed

+2
-38
lines changed

1 file changed

+2
-38
lines changed

source/about.html.md

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -19,41 +19,5 @@ url alias: [wiki.ledger-cli.org](https://wiki.ledger-cli.org).
1919
The site is built using [GitHub Actions](https://github.com/ledger/ledger.github.io/actions) and
2020
deploys to [GitHub Pages](https://pages.github.com).
2121

22-
We use this small [Lambda@Edge](https://docs.aws.amazon.com/lambda/latest/dg/lambda-edge.html) function to serve redirects and to redirect bare domain to `www`:
23-
24-
'use strict';
25-
26-
exports.handler = (event, context, callback) => {
27-
const request = event.Records[0].cf.request;
28-
const host = request.headers.host[0].value;
29-
30-
if (host == "www.ledger-cli.org") {
31-
callback(null, request);
32-
} else {
33-
var redirectTarget = 'https://www.ledger-cli.org';
34-
35-
if (host == "git.ledger-cli.org") {
36-
redirectTarget = "https://github.com/ledger/ledger";
37-
} else if (host == "list.ledger-cli.org") {
38-
redirectTarget = "https://groups.google.com/group/ledger-cli";
39-
} else if (host == "wiki.ledger-cli.org") {
40-
redirectTarget = "https://github.com/ledger/ledger/wiki";
41-
}
42-
43-
var response = {
44-
status: '302',
45-
statusDescription: 'Found',
46-
headers: {
47-
location: [{
48-
key: 'Location',
49-
value: redirectTarget,
50-
}],
51-
},
52-
};
53-
54-
callback(null, response);
55-
}
56-
};
57-
58-
59-
<!-- The current webmaster is <a href="mailto:[email protected]">Pete Keen</a>. All help is welcome. -->
22+
[Cloudflare Redirect Rules](https://developers.cloudflare.com/rules/url-forwarding/single-redirects/examples/)
23+
are used to serve `git`, `wiki`, and `list` subdomain redirects and to redirect the apex domain to `www`.

0 commit comments

Comments
 (0)