Skip to article frontmatterSkip to article content

When a web server receives a request, it may return a redirection response (with a 30X return code). We use redirects for a few purposes,

Redirecting at the web server rather than with DNS has some advantages,

Netlify redirects

Redirects for The Turing Way are defined in nelify.toml in the array of tables [[redirects]]. The TOML syntax means that a new [[redirects]] item is added for each redirect we want to define. The syntax for Netlify redirects is described in their documentation, where the available options are also explained.

Our redirects

www

We have a wildcard, permanent redirect for https://www.book.the-turing-way.org/* which returns the preferred url, without www.

Old book domain

We have a wildcard, permanent redirect for the old book domain at https://the-turing-way.netlify.app/* which returns the new url.

Start page

In our DNS configuration we have pointed the-turing-way.org and www.the-turing-way.org to the Netlify load balancer. We redirect these to the-turing-way.start.page as a landing page for The Turing Way project as a whole.

Moved chapters

Most of the redirects are for chapters or pages which have moved internally. The full list of these isn’t described here but can be seen in nelify.toml.

Helpers

Our helper redirects allow us to have easy to remember and share URLs which we can point to community resources, which may move. We currently have the following helpers,

Helper URLDirects to
git.the-turing-way.orgOur git repositories
news.the-turing-way.orgOur newsletters archive
slack.the-turing-way.orgAn invitation to our Slack workspace