releases/doc/source/_templates/htaccess
Dmitriy Rabotyagov 529190ddfa Allow upper-constraints redirect based on SHA
This patch aims to make possible to provide SHA commit
for https://releases.openstack.org/constraints/upper/ URL
in addition to branch or tag. This is heavily used by OSA to be sure
that every time role is runned under some release it will install
the same package versions.
And to be consistent and use releases.openstack.org for contraints
not only in tox but in role itself this patch is needed.

Change-Id: I1ce0af2ab2163ea1f154516229889b3cf8813ab6
2019-10-28 14:31:29 +00:00

8 lines
556 B
Plaintext

redirect 301 /teams/shade.html /teams/openstacksdk.html
redirect 301 /constraints/upper/master https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt
{%- for redirection in redirections %}
redirect {{ redirection.code }} /constraints/upper/{{ redirection.src }} https://opendev.org/openstack/requirements/raw/{{ redirection.ref_type }}/{{ redirection.dst }}/upper-constraints.txt
{%- endfor %}
redirectmatch 302 ^/constraints/upper/([0-9a-f]{40})$ https://opendev.org/openstack/requirements/raw/commit/$1/upper-constraints.txt