Add a .htaccess for redirecting old paths

This commit adds an .htaccess file to the tempest docs to handle
redirecting old paths to the new location. Before the docs migration in
the past we had docs located at docs.openstack.org/developer/tempest and
now things are located in docs.openstack.org/tempest/latest. With this
file we should be properly redirecting old links to the new location.

Change-Id: Idec7b2f299ade9b7dcc678ea1daf8daa25f08c44
This commit is contained in:
Matthew Treinish 2017-11-06 20:11:45 -05:00 committed by Andrea Frittoli
parent 93a42fd79d
commit cd2fef95ca
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1 @@
redirectmatch 301 ^/developer/tempest/(.*) /tempest/latest/$1

View File

@ -154,6 +154,9 @@ html_theme = 'openstackdocs'
# relative to this directory. They are copied after the builtin static files,
# 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.