diff --git a/doc/source/_extra/.htaccess b/doc/source/_extra/.htaccess new file mode 100644 index 000000000000..23912c9c8fcd --- /dev/null +++ b/doc/source/_extra/.htaccess @@ -0,0 +1,5 @@ +# As part of the doc-migration during Pike, the main cells landing page +# moved. Redirect from the old to new location. +redirectmatch 301 ^/nova/([^/]+)/cells.html$ /nova/$1/user/cells.html +# This pattern should match the URL on the draft site +redirectmatch 301 /doc/build/html/cells.html$ /nova/$1/user/cells.html diff --git a/doc/source/conf.py b/doc/source/conf.py index 008be7558419..02875cac1a4b 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -140,6 +140,10 @@ html_theme = 'openstackdocs' # 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 = '%Y-%m-%d %H:%M'