-
Notifications
You must be signed in to change notification settings - Fork 75
/
redirects.conf
57 lines (44 loc) · 4.09 KB
/
redirects.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# -*- mode: apache -*-
# Note: The version of this file in the /master/ branch is the only one that has any effect.
#
# As of 2022-08-29 docs.cfengine.com is run by a single webserver with a single
# vhost instance. Version specific docs are simply sub-directories. As such,
# rewrites here apply to all versions of docs and must account for the correct
# doc version in the path.
# Convenience Redirects
RewriteRule ^/$ https://%{SERVER_NAME}/lts/ [R]
# Fixed link location for vagrant and binary tarball instructions from download tables
RewriteRule ^/docs/(3\.20)/guide-installation-and-configuration-general-installation-installation-enterprise-vagrant.html$ https://%{SERVER_NAME}/docs/$1/getting-started-installation-general-installation-installation-enterprise-vagrant.html [R]
RewriteRule ^/docs/(3\.20)/guide-installation-and-configuration-general-installation-installation-enterprise-generic-tarball.html$ https://%{SERVER_NAME}/docs/$1/getting-started-installation-general-installation-installation-enterprise-generic-tarball.html [R]
RewriteRule ^/docs/(3\.21)/guide-installation-and-configuration-general-installation-installation-enterprise-vagrant.html$ https://%{SERVER_NAME}/docs/$1/getting-started-installation-general-installation-installation-enterprise-vagrant.html [R]
RewriteRule ^/docs/(3\.21)/guide-installation-and-configuration-general-installation-installation-enterprise-generic-tarball.html$ https://%{SERVER_NAME}/docs/$1/getting-started-installation-general-installation-installation-enterprise-generic-tarball.html [R]
RewriteRule ^/docs/(3\.22)/guide-installation-and-configuration-general-installation-installation-enterprise-vagrant.html$ https://%{SERVER_NAME}/docs/$1/getting-started-installation-general-installation-installation-enterprise-vagrant.html [R]
RewriteRule ^/docs/(3\.22)/guide-installation-and-configuration-general-installation-installation-enterprise-generic-tarball.html$ https://%{SERVER_NAME}/docs/$1/getting-started-installation-general-installation-installation-enterprise-generic-tarball.html [R]
RewriteRule ^/docs/$ https://%{SERVER_NAME}/lts/ [R]
RewriteRule ^/latest$ https://%{SERVER_NAME}/docs/3.24/ [R]
RewriteRule ^/latest/(.*)$ https://%{SERVER_NAME}/docs/3.24/$1 [R]
RewriteRule ^/lts$ https://%{SERVER_NAME}/docs/3.24/ [R]
RewriteRule ^/lts/(.*)$ https://%{SERVER_NAME}/docs/3.24/$1 [R]
# Redirect moved getting started guide:
RewriteRule ^/docs/master/guide-getting-started-with-cfengine-build.html$ /docs/master/getting-started-getting-started-with-cfengine-build.html [R]
# Redirect moved glossary:
RewriteRule ^/docs/master/resources-additional-topics-glossary.html$ /docs/master/overview-glossary.html [R]
RewriteRule ^/docs/3.21/resources-additional-topics-glossary.html$ /docs/3.21/overview-glossary.html [R]
# Redirect for easy access to 3rd party license information:
# The /licenses shortcut is mentioned in legal agreements, website, etc.
RewriteRule ^/licenses/?$ /docs/master/release-notes-legal-and-licenses.html [R]
RewriteRule ^/docs/master/licenses/?$ /docs/master/release-notes-legal-and-licenses.html [R]
RewriteRule ^/docs/3.21/licenses/?$ /docs/3.21/release-notes-legal-and-licenses.html [R]
RewriteRule ^/docs/3.18/licenses/?$ /docs/3.18/legal.html [R]
# Redirect from old location of legal and licenses to new:
RewriteRule ^/docs/master/legal.html/?$ /docs/master/release-notes-legal-and-licenses.html [R]
RewriteRule ^/docs/3.21/legal.html/?$ /docs/3.21/release-notes-legal-and-licenses.html [R]
# Opposite for 3.18 which uses old hierarchy:
RewriteRule ^/docs/3.18/release-notes-legal-and-licenses.html?$ /docs/3.18/legal.html [R]
# Redirect for the new location of supported platforms:
RewriteRule ^/docs/3.21/guide-latest-release-supported-platforms.html /docs/3.21/release-notes-supported-platforms.html [R]
# Unsure if this will work as latest part might already be rewritten:
RewriteRule ^/latest/guide-latest-release-supported-platforms.html /docs/latest/release-notes-supported-platforms.html [R]
RewriteRule ^/nickanderson https://www.linkedin.com/in/hithisisnick/
RewriteRule ^/thisistheway https://orgmode.org
RewriteRule ^/orgmode https://orgmode.org