Skip to content

Commit 0ebb020

Browse files
authored
Merge pull request #158 from rustagir/master
Implement redirects for standardized docs
2 parents 55daa82 + 9b685b6 commit 0ebb020

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

config/redirects

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,47 @@
11
define: base https://www.mongodb.com/docs/php-library
22
define: prefix docs/php-library
33
raw: ${prefix}/ -> ${base}/current
4-
define: versions v1.1 v1.2 v1.3 v1.4 v1.5 v1.6 v1.7 v1.8 v1.9 v1.10 v1.11 v1.12 v1.13 v1.15 v1.16 v1.17 v1.18 v1.19 v1.20 master
4+
define: versions v1.16 v1.17 v1.18 v1.19 v1.20 master
55
symlink: upcoming -> master
66
symlink: current -> v1.20
77

8-
(v1.16-*]: ${prefix}/${version}/tutorial/client-side-encryption/ -> ${base}/${version}/tutorial/encryption/
8+
(v1.16-v1.19]: ${prefix}/${version}/tutorial/client-side-encryption/ -> ${base}/${version}/tutorial/encryption/
99
[v1.16]: ${prefix}/${version}/tutorial/encryption/ -> ${base}/${version}/
10+
11+
# standardization redirects
12+
13+
# redirects in standardized docs
14+
[v1.20-*]: ${prefix}/${version}/tutorial/install-php-library/ -> ${base}/${version}/get-started download-and-install/
15+
[v1.20-*]: ${prefix}/${version}/tutorial/connecting/ -> ${base}/${version}/connect/
16+
[v1.20-*]: ${prefix}/${version}/tutorial/server-selection/ -> ${base}/${version}/monitoring/cluster-monitoring/
17+
[v1.20-*]: ${prefix}/${version}/tutorial/crud/ -> ${base}/${version}/read/
18+
[v1.20-*]: ${prefix}/${version}/tutorial/codecs/ -> ${base}/${version}/data-formats/codecs/
19+
[v1.20-*]: ${prefix}/${version}/tutorial/collation/ -> ${base}/${version}/
20+
[v1.20-*]: ${prefix}/${version}/tutorial/commands/ -> ${base}/${version}/run-command/
21+
[v1.20-*]: ${prefix}/${version}/tutorial/custom-types/ -> ${base}/${version}/data-formats/custom-types/
22+
[v1.20-*]: ${prefix}/${version}/tutorial/decimal128/ -> ${base}/${version}/data-formats/decimal128/
23+
[v1.20-*]: ${prefix}/${version}/tutorial/encryption/ -> ${base}/${version}/security/in-use-encryption/
24+
[v1.20-*]: ${prefix}/${version}/tutorial/gridfs/ -> ${base}/${version}/write/gridfs/
25+
[v1.20-*]: ${prefix}/${version}/tutorial/indexes/ -> ${base}/${version}/indexes/
26+
[v1.20-*]: ${prefix}/${version}/tutorial/tailable-cursor/ -> ${base}/${version}/read/cursor/
27+
[v1.20-*]: ${prefix}/${version}/tutorial/example-data/ -> ${base}/${version}/
28+
[v1.20-*]: ${prefix}/${version}/tutorial/aws-lambda/ -> ${base}/${version}/
29+
[v1.20-*]: ${prefix}/${version}/tutorial/modeling-bson-data/ -> ${base}/${version}/data-formats/modeling-bson-data/
30+
[v1.20-*]: ${prefix}/${version}/tutorial/stable-api/ -> ${base}/${version}/stable-api/
31+
32+
# redirects in old docs
33+
# note: this mapping does not account for all of the new pages
34+
[*-v1.19]: ${prefix}/${version}/get-started download-and-install/ -> ${base}/${version}/tutorial/install-php-library/
35+
[*-v1.19]: ${prefix}/${version}/connect/ -> ${base}/${version}/tutorial/connecting/
36+
[*-v1.19]: ${prefix}/${version}/monitoring/cluster-monitoring/ -> ${base}/${version}/tutorial/server-selection/
37+
[*-v1.19]: ${prefix}/${version}/read/ -> ${base}/${version}/tutorial/crud/
38+
[*-v1.19]: ${prefix}/${version}/data-formats/codecs/ -> ${base}/${version}/tutorial/codecs/
39+
[*-v1.19]: ${prefix}/${version}/run-command/ -> ${base}/${version}/tutorial/commands/
40+
[*-v1.19]: ${prefix}/${version}/data-formats/custom-types/ -> ${base}/${version}/tutorial/custom-types/
41+
[*-v1.19]: ${prefix}/${version}/data-formats/decimal128/ -> ${base}/${version}/tutorial/decimal128/
42+
[*-v1.19]: ${prefix}/${version}/security/in-use-encryption/ -> ${base}/${version}/tutorial/encryption/
43+
[*-v1.19]: ${prefix}/${version}/write/gridfs/ -> ${base}/${version}/tutorial/gridfs/
44+
[*-v1.19]: ${prefix}/${version}/indexes/ -> ${base}/${version}/tutorial/indexes/
45+
[*-v1.19]: ${prefix}/${version}/read/cursor/ -> ${base}/${version}/tutorial/tailable-cursor/
46+
[*-v1.19]: ${prefix}/${version}/data-formats/modeling-bson-data/ -> ${base}/${version}/tutorial/modeling-bson-data/
47+
[*-v1.19]: ${prefix}/${version}/stable-api/ -> ${base}/${version}/tutorial/stable-api/

0 commit comments

Comments
 (0)