Do deep redirects from old docs.openstack.org URLs

The docs.openstack.org site was rearranged so that the old docs at
/developer/heat/ are now at /heat/latest/. The base .htaccess file in
openstack-manuals redirects everything in the old hierarchy to the root
of the new one unless there is a .htaccess file present (see
I0af0e32d9c646d61f4c72599cdc4613299aa5ec9).

Add a .htaccess file so that old links redirect to the equivalent page
in the new location.

Change-Id: I74de09f4e25c2eda050053d3b8646586c9f24c04
Closes-Bug: #1722820
This commit is contained in:
Zane Bitter 2017-11-02 16:20:48 -04:00
parent de01374f80
commit 6c8697442e
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,3 @@
# The top-level docs project will redirect URLs from the old /developer docs
# to their equivalent pages on the new docs.openstack.org only if this file
# exists.

View File

@ -182,6 +182,10 @@ html_theme_options = {"sidebar_mode": "toc"}
# so a file named "default.css" will overwrite the builtin "default.css".
# html_static_path = ['_static']
# Add any paths that contain "extra" files, such as .htaccess or
# robots.txt.
html_extra_path = ['_extra']
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
# html_last_updated_fmt = '%b %d, %Y'