allow redirects in .htaccess files on the static web servers
As part of allowing projects to establish redirects when they move documentation pages around, we need to let them use .htaccess files. We only want to allow Redirect and RedirectMatch directives, though. This change restricts the directives on docs.o.o and adds them on the static servers used for drafts published during a build (to allow testing of the redirects). For more details see: http://lists.openstack.org/pipermail/openstack-dev/2017-July/120240.html Change-Id: I754c8016ca2a475e74023017530264e7ae331557
This commit is contained in:
parent
fdfa516a67
commit
0eb5f38c26
24
doc/source/_extra/.htaccess
Normal file
24
doc/source/_extra/.htaccess
Normal file
@ -0,0 +1,24 @@
|
||||
redirectmatch 301 ^/barbican/([^/]+)/admin-guide-cloud/access_control.html$ ^/barbican/$1/admin/access_control.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/admin-guide-cloud/barbican_manage.html$ ^/barbican/$1/admin/barbican_manage.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/admin-guide-cloud/database_cleaning.html$ ^/barbican/$1/admin/database_cleaning.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/admin-guide-cloud/index.html$ ^/barbican/$1/admin/index.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/upgrade/index.html$ ^/admin/upgrade.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/setup/audit.html$ ^/configuration/audit.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/setup/index.html$ ^/configuration/index.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/setup/keystone.html$ ^/configuration/keystone.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/setup/noauth.html$ ^/configuration/noauth.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/setup/plugin_backends.html$ ^/configuration/plugin_backends.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/setup/troubleshooting.html$ ^/configuration/troubleshooting.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/contribute/architecture.html$ ^/contributor/architecture.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/contribute/database_migration.html$ ^/contributor/database_migration.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/contribute/dataflow.html$ ^/contributor/fataflow.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/contribute/dependencies.html$ ^/contributor/dependencies.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/setup/dev.html$ ^/contributor/dev.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/steup/devstack.html$ ^/contributor/devstack.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/contribute/getting_involved.html$ ^/contributor/getting_involved.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/plugin/crypto.html$ ^/contributor/plugin/crypto.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/plugin/index.html$ ^/contributor/plugin/index.html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/pluhin/secret_store.html$ ^/contributor/plugin/secret_store/html
|
||||
redirectmatch 301 ^/barbican/([^/]+)/contribute/structure.html$ ^/contributor/structure.html/
|
||||
redirectmatch 301 ^/barbican/([^/]+)/testing.html$ ^/contributor/testing.html
|
||||
|
@ -42,6 +42,10 @@ repository_name = 'openstack/barbican'
|
||||
bug_project = 'barbican'
|
||||
bug_tag = ''
|
||||
|
||||
# Add any paths that contain "extra" files, such as .htaccess or
|
||||
# robots.txt.
|
||||
html_extra_path = ['_extra']
|
||||
|
||||
# Must set this variable to include year, month, day, hours, and minutes.
|
||||
html_last_updated_fmt = '%Y-%m-%d %H:%M'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user