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:
parent
93a42fd79d
commit
cd2fef95ca
1
doc/source/_extra/.htaccess
Normal file
1
doc/source/_extra/.htaccess
Normal file
@ -0,0 +1 @@
|
||||
redirectmatch 301 ^/developer/tempest/(.*) /tempest/latest/$1
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user