Skip to content

Commit

Permalink
Make the redirects work
Browse files Browse the repository at this point in the history
I have no idea why the ordering has an effect, but it does.

The redirects were checked by eye using a variant of the bash one-liner in #1089:

```sh
cut -f1 -d' ' _redirects | awk '{print "$OPENSAFELY_PREVIEW_URL"$0}' | xargs -n1 curl -o /dev/null --silent --head --write-out '%{url_effective} '%{http_code}' \n'
```

The preview URL depends on the deployment, which depends on the commit,
so can't easily get the actual URL in there.
  • Loading branch information
StevenMaude committed Jan 12, 2023
1 parent 666a8cd commit 9a73c01
Showing 1 changed file with 60 additions and 60 deletions.
120 changes: 60 additions & 60 deletions docs/_redirects
Original file line number Diff line number Diff line change
@@ -1,3 +1,63 @@
/data-builder-vs-cohort-extractor /data-builder/comparison-with-cohort-extractor/ 302
/data-builder-vs-cohort-extractor/ /data-builder/comparison-with-cohort-extractor/ 302
/data-backends /data-builder/contracts/data-backends/ 302
/data-backends/ /data-builder/contracts/data-backends/ 302
/data-provider-integration /data-builder/contracts/data-provider-integration/ 302
/data-provider-integration/ /data-builder/contracts/data-provider-integration/ 302
/contracts-intro /data-builder/contracts/intro/ 302
/contracts-intro/ /data-builder/contracts/intro/ 302
/contracts-reference /data-builder/contracts/reference/ 302
/contracts-reference/ /data-builder/contracts/reference/ 302
/dataset-definition /data-builder/dataset-definition/ 302
/dataset-definition/ /data-builder/dataset-definition/ 302
/dataset-sql-explanation /data-builder/dataset-sql-explanation/ 302
/dataset-sql-explanation/ /data-builder/dataset-sql-explanation/ 302
/data-builder-dummy-data /data-builder/dummy-data/ 302
/data-builder-dummy-data/ /data-builder/dummy-data/ 302
/ehrql-combining-series-and-frames /data-builder/ehrql/combining-series-and-frames/ 302
/ehrql-combining-series-and-frames/ /data-builder/ehrql/combining-series-and-frames/ 302
/ehrql-examples /data-builder/ehrql/examples/ 302
/ehrql-examples/ /data-builder/ehrql/examples/ 302
/ehrql-intro /data-builder/ehrql/intro/ 302
/ehrql-intro/ /data-builder/ehrql/intro/ 302
/ehrql-reference /data-builder/ehrql/reference/ 302
/ehrql-reference/ /data-builder/ehrql/reference/ 302
/ehrql-set-population-explainer /data-builder/ehrql/set-population-explanation/ 302
/ehrql-set-population-explainer/ /data-builder/ehrql/set-population-explanation/ 302
/ehrql-new-tutorial-1a /data-builder/ehrql/tutorial/1a/ 302
/ehrql-new-tutorial-1a/ /data-builder/ehrql/tutorial/1a/ 302
/ehrql-new-tutorial-1b /data-builder/ehrql/tutorial/1b/ 302
/ehrql-new-tutorial-1b/ /data-builder/ehrql/tutorial/1b/ 302
/ehrql-new-tutorial-2a /data-builder/ehrql/tutorial/2a/ 302
/ehrql-new-tutorial-2a/ /data-builder/ehrql/tutorial/2a/ 302
/ehrql-new-tutorial-3a /data-builder/ehrql/tutorial/3a/ 302
/ehrql-new-tutorial-3a/ /data-builder/ehrql/tutorial/3a/ 302
/ehrql-new-tutorial-4a /data-builder/ehrql/tutorial/4a/ 302
/ehrql-new-tutorial-4a/ /data-builder/ehrql/tutorial/4a/ 302
/ehrql-new-tutorial-5a /data-builder/ehrql/tutorial/5a/ 302
/ehrql-new-tutorial-5a/ /data-builder/ehrql/tutorial/5a/ 302
/ehrql-new-tutorial-6a /data-builder/ehrql/tutorial/6a/ 302
/ehrql-new-tutorial-6a/ /data-builder/ehrql/tutorial/6a/ 302
/ehrql-new-tutorial-7a /data-builder/ehrql/tutorial/7a/ 302
/ehrql-new-tutorial-7a/ /data-builder/ehrql/tutorial/7a/ 302
/ehrql-new-tutorial-conclusion /data-builder/ehrql/tutorial/conclusion/ 302
/ehrql-new-tutorial-conclusion/ /data-builder/ehrql/tutorial/conclusion/ 302
/ehrql-new-tutorial-intro /data-builder/ehrql/tutorial/intro/ 302
/ehrql-new-tutorial-intro/ /data-builder/ehrql/tutorial/intro/ 302
/ehrql-new-tutorial-opensafely-project /data-builder/ehrql/tutorial/opensafely-project/ 302
/ehrql-new-tutorial-opensafely-project/ /data-builder/ehrql/tutorial/opensafely-project/ 302
/ehrql-new-tutorial-python /data-builder/ehrql/tutorial/python/ 302
/ehrql-new-tutorial-python/ /data-builder/ehrql/tutorial/python/ 302
/data-builder-intro /data-builder/intro/ 302
/data-builder-intro/ /data-builder/intro/ 302
/query-engine-explanation /data-builder/query-engine-explanation/ 302
/query-engine-explanation/ /data-builder/query-engine-explanation/ 302
/data-builder-quick-start /data-builder/quick-start/ 302
/data-builder-quick-start/ /data-builder/quick-start/ 302
/data-builder-toc /data-builder/toc/ 302
/data-builder-toc/ /data-builder/toc/ 302
/data-builder-versioning /data-builder/versioning/ 302
/data-builder-versioning/ /data-builder/versioning/ 302
/en / 301
/en/ / 301
/en/latest / 301
Expand Down Expand Up @@ -50,63 +110,3 @@
/permissions/ /jobs-site/ 301
/job-server /jobs-site/ 301
/job-server/ /jobs-site/ 301
/data-builder-vs-cohort-extractor /data-builder/comparison-with-cohort-extractor/
/data-builder-vs-cohort-extractor/ /data-builder/comparison-with-cohort-extractor/
/data-backends /data-builder/contracts/data-backends/
/data-backends/ /data-builder/contracts/data-backends/
/data-provider-integration /data-builder/contracts/data-provider-integration/
/data-provider-integration/ /data-builder/contracts/data-provider-integration/
/contracts-intro /data-builder/contracts/intro/
/contracts-intro/ /data-builder/contracts/intro/
/contracts-reference /data-builder/contracts/reference/
/contracts-reference/ /data-builder/contracts/reference/
/dataset-definition /data-builder/dataset-definition/
/dataset-definition/ /data-builder/dataset-definition/
/dataset-sql-explanation /data-builder/dataset-sql-explanation/
/dataset-sql-explanation/ /data-builder/dataset-sql-explanation/
/data-builder-dummy-data /data-builder/dummy-data/
/data-builder-dummy-data/ /data-builder/dummy-data/
/ehrql-combining-series-and-frames /data-builder/ehrql/combining-series-and-frames/
/ehrql-combining-series-and-frames/ /data-builder/ehrql/combining-series-and-frames/
/ehrql-examples /data-builder/ehrql/examples/
/ehrql-examples/ /data-builder/ehrql/examples/
/ehrql-intro /data-builder/ehrql/intro/
/ehrql-intro/ /data-builder/ehrql/intro/
/ehrql-reference /data-builder/ehrql/reference/
/ehrql-reference/ /data-builder/ehrql/reference/
/ehrql-set-population-explainer /data-builder/ehrql/set-population-explanation/
/ehrql-set-population-explainer/ /data-builder/ehrql/set-population-explanation/
/ehrql-new-tutorial-1a /data-builder/ehrql/tutorial/1a/
/ehrql-new-tutorial-1a/ /data-builder/ehrql/tutorial/1a/
/ehrql-new-tutorial-1b /data-builder/ehrql/tutorial/1b/
/ehrql-new-tutorial-1b/ /data-builder/ehrql/tutorial/1b/
/ehrql-new-tutorial-2a /data-builder/ehrql/tutorial/2a/
/ehrql-new-tutorial-2a/ /data-builder/ehrql/tutorial/2a/
/ehrql-new-tutorial-3a /data-builder/ehrql/tutorial/3a/
/ehrql-new-tutorial-3a/ /data-builder/ehrql/tutorial/3a/
/ehrql-new-tutorial-4a /data-builder/ehrql/tutorial/4a/
/ehrql-new-tutorial-4a/ /data-builder/ehrql/tutorial/4a/
/ehrql-new-tutorial-5a /data-builder/ehrql/tutorial/5a/
/ehrql-new-tutorial-5a/ /data-builder/ehrql/tutorial/5a/
/ehrql-new-tutorial-6a /data-builder/ehrql/tutorial/6a/
/ehrql-new-tutorial-6a/ /data-builder/ehrql/tutorial/6a/
/ehrql-new-tutorial-7a /data-builder/ehrql/tutorial/7a/
/ehrql-new-tutorial-7a/ /data-builder/ehrql/tutorial/7a/
/ehrql-new-tutorial-conclusion /data-builder/ehrql/tutorial/conclusion/
/ehrql-new-tutorial-conclusion/ /data-builder/ehrql/tutorial/conclusion/
/ehrql-new-tutorial-intro /data-builder/ehrql/tutorial/intro/
/ehrql-new-tutorial-intro/ /data-builder/ehrql/tutorial/intro/
/ehrql-new-tutorial-opensafely-project /data-builder/ehrql/tutorial/opensafely-project/
/ehrql-new-tutorial-opensafely-project/ /data-builder/ehrql/tutorial/opensafely-project/
/ehrql-new-tutorial-python /data-builder/ehrql/tutorial/python/
/ehrql-new-tutorial-python/ /data-builder/ehrql/tutorial/python/
/data-builder-intro /data-builder/intro/
/data-builder-intro/ /data-builder/intro/
/query-engine-explanation /data-builder/query-engine-explanation/
/query-engine-explanation/ /data-builder/query-engine-explanation/
/data-builder-quick-start /data-builder/quick-start/
/data-builder-quick-start/ /data-builder/quick-start/
/data-builder-toc /data-builder/toc/
/data-builder-toc/ /data-builder/toc/
/data-builder-versioning /data-builder/versioning/
/data-builder-versioning/ /data-builder/versioning/

0 comments on commit 9a73c01

Please sign in to comment.