Skip to content

Commit 72975e0

Browse files
committed
add redirect for /php-library/
1 parent 0ac34e8 commit 72975e0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

config/htaccess.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Each YAML document has the following schema:
2+
#
3+
# from: "the path to the redirected URL"
4+
# to: "the path to the new location for the resource"
5+
# type: "currently this script only supports 'redirect', and
6+
# ignores all documents with another type."
7+
# code: "the HTTP redirect code. Raises exception if not 301, 302, 303."
8+
# outputs: "a list of branches/paths as follows:"
9+
#
10+
# - 'all': generates redirects for all published branches, but *not* 'manual'. But giza will take care of manual as part of integration.yaml logic in redirects.py
11+
#
12+
# - '<branch>': generates redirects for a specific branch.
13+
#
14+
# - 'before-<branch>': generates redirects for all branches that
15+
# reflect releases previous to the specified branch. (Inclusive.)
16+
#
17+
# - 'after-<branch>': generates redirects for all branches that
18+
# reflect releases after the specified branch. (Non-inclusive.)
19+
#
20+
# All paths are relative to the ``source/`` directory.
21+
#
22+
########################################################################
23+
### Giza requires this file, even if no redirects
24+
### More as a safety -- in case, we remove redirects during deploys
25+
from: '/'
26+
to: '/master'
27+
type: 'redirect'
28+
code: 301
29+
outputs:
30+
- {'/php-library': 'https://docs.mongodb.com/php-library'}
31+
...

0 commit comments

Comments
 (0)