2017-07-18 18:40:06 -04:00
|
|
|
{# NOTE(dhellmann): This file is not in a series directory,
|
|
|
|
so we need to set the series name ourselves. #}
|
2017-06-25 11:21:41 -04:00
|
|
|
{% set series = 'latest' %}
|
|
|
|
{% set projects = PROJECT_DATA[series] %}
|
|
|
|
|
2017-07-18 17:45:02 -04:00
|
|
|
# Redirect old top-level HTML pages to the version under most recent
|
|
|
|
# full release.
|
2017-07-18 18:40:06 -04:00
|
|
|
redirectmatch 301 /$ /{{RELEASED_SERIES}}/
|
|
|
|
redirectmatch 301 /index.html$ /{{RELEASED_SERIES}}/
|
|
|
|
redirectmatch 301 /openstack-projects.html$ /{{RELEASED_SERIES}}/projects.html
|
|
|
|
redirectmatch 301 /language-bindings.html$ /{{RELEASED_SERIES}}/language-bindings.html
|
2017-07-18 17:45:02 -04:00
|
|
|
|
2015-10-06 16:38:14 +09:00
|
|
|
# Redirecting End-of-Life (EOL) versions, see https://wiki.openstack.org/wiki/Releases:
|
|
|
|
redirectmatch 301 /bexar/.*$ /index.html
|
|
|
|
redirectmatch 301 /cactus/.*$ /index.html
|
|
|
|
redirectmatch 301 /diablo/.*$ /index.html
|
|
|
|
redirectmatch 301 /essex/.*$ /index.html
|
|
|
|
redirectmatch 301 /folsom/.*$ /index.html
|
|
|
|
redirectmatch 301 /grizzly/.*$ /index.html
|
|
|
|
redirectmatch 301 /havana/.*$ /index.html
|
2017-01-30 19:42:16 +01:00
|
|
|
|
|
|
|
# We still have the config-reference available
|
|
|
|
redirectmatch 301 /icehouse/(?!config-reference)/.*$ /index.html
|
|
|
|
redirectmatch 301 /juno/(?!config-reference)/.*$ /index.html
|
|
|
|
redirectmatch 301 /kilo/(?!config-reference)/.*$ /index.html
|
2017-02-17 16:14:38 +02:00
|
|
|
redirectmatch 301 /liberty/(?!config-reference)/.*$ /index.html
|
2015-10-06 16:38:14 +09:00
|
|
|
|
2013-05-23 15:31:15 -05:00
|
|
|
# Redirect docs.openstack.org index.html subpage pointers to main page
|
2017-07-19 14:58:26 -04:00
|
|
|
redirect 301 /install/ /{{RELEASED_SERIES}}/install/
|
|
|
|
redirect 301 /basic-install/ /{{RELEASED_SERIES}}/install/
|
2013-05-23 15:31:15 -05:00
|
|
|
redirect 301 /run/ /
|
2017-07-19 14:58:26 -04:00
|
|
|
redirect 301 /developer/index.html /{{RELEASED_SERIES}}/projects.html
|
2013-07-29 11:56:03 -05:00
|
|
|
redirect 301 /cli/ /
|
2017-01-11 07:54:44 -06:00
|
|
|
redirect 301 /api/api-specs.html http://developer.openstack.org/api-guide/quick-start/index.html
|
2013-09-30 20:15:31 +02:00
|
|
|
|
2014-05-29 16:30:58 -05:00
|
|
|
# Redirect O'Reilly Operations Guide PDF to trunk version
|
2014-06-23 22:08:58 +02:00
|
|
|
redirect 301 /trunk/openstack-ops/oreilly-openstack-ops-guide.pdf /openstack-ops/openstack-ops-manual.pdf
|
|
|
|
|
2017-07-11 14:48:25 -04:00
|
|
|
# Redirect old Admin Guide to new landing page
|
2017-07-19 14:58:26 -04:00
|
|
|
redirectmatch 301 /admin-guide/.*$ /{{RELEASED_SERIES}}/admin/index.html
|
2017-07-11 14:48:25 -04:00
|
|
|
|
2014-03-05 23:38:14 -05:00
|
|
|
# A doc generation bug resulted in Google indexing links containing "//", which cause
|
|
|
|
# problems with linked content (images/css/etc). This rule generates a 301 redirect
|
|
|
|
# for these links.
|
|
|
|
#
|
|
|
|
# details: https://bugs.launchpad.net/openstack-manuals/+bug/1288513
|
|
|
|
redirectmatch 301 (.*)//(.*) $1/$2
|
|
|
|
|
2016-01-05 18:50:25 +01:00
|
|
|
# Redirect networking-guide since it is now versioned
|
2017-02-17 16:14:38 +02:00
|
|
|
redirect 301 /networking-guide/ /ocata/networking-guide/
|
2016-01-05 18:50:25 +01:00
|
|
|
|
2016-01-19 14:36:16 -05:00
|
|
|
# Redirect old releases content to new location
|
|
|
|
redirectmatch 301 "^/releases.*$" http://releases.openstack.org$1
|
|
|
|
|
2017-07-10 15:01:09 -04:00
|
|
|
# Redirect removed user guide
|
2017-07-19 14:58:26 -04:00
|
|
|
redirectmatch 301 /user-guide/.*$ /{{RELEASED_SERIES}}/user/
|
2017-07-10 15:01:09 -04:00
|
|
|
|
2017-07-14 14:29:34 +01:00
|
|
|
# Redirect removed ops guide
|
2017-07-19 14:58:26 -04:00
|
|
|
redirectmatch 301 /ops-guide/.*$ /{{RELEASED_SERIES}}/admin/
|
2017-07-14 14:29:34 +01:00
|
|
|
|
2017-02-24 11:46:02 +09:00
|
|
|
# Redirect changed directory name in the Contributor Guide
|
|
|
|
redirect 301 /contributor-guide/ui-text-guidelines.html /contributor-guide/ux-ui-guidelines/ui-text-guidelines.html
|
|
|
|
redirect 301 /contributor-guide/ui-text-guidelines /contributor-guide/ux-ui-guidelines
|
|
|
|
|
2017-02-22 14:53:28 -05:00
|
|
|
# Redirect any deploy guide project directory back to the current stable index
|
2017-07-19 14:58:26 -04:00
|
|
|
redirectmatch 301 "^/project-deploy-guide/$" /{{RELEASED_SERIES}}/deploy/
|
|
|
|
redirectmatch 301 "^/project-deploy-guide/openstack-ansible/$" /project-deploy-guide/openstack-ansible/{{RELEASED_SERIES}}/
|
2017-07-19 15:03:17 -04:00
|
|
|
redirectmatch 301 "^/project-deploy-guide/newton/" /newton/deploy/
|
|
|
|
redirectmatch 301 "^/project-deploy-guide/ocata/" /ocata/deploy/
|
2017-04-03 07:50:36 -05:00
|
|
|
|
2017-07-19 15:05:44 -04:00
|
|
|
# Redirect old install guide list pages to their new home
|
|
|
|
redirectmatch 301 "^/project-install-guide/newton/" /newton/install/
|
|
|
|
redirectmatch 301 "^/project-install-guide/ocata/(.*)$" /ocata/install/$1
|
|
|
|
|
2017-04-03 07:50:36 -05:00
|
|
|
# Redirecting infra docs links to new developer location
|
|
|
|
redirectmatch 301 "^/infra/shade(.*)$" /developer/shade$1
|
2017-06-19 17:34:54 -04:00
|
|
|
|
|
|
|
# Redirecting old project developer docs to the new project home pages
|
|
|
|
# while leaving the index / project list page as it is.
|
|
|
|
redirectmatch 301 "^/developer/([^/]+)/.*$" /$1/latest/
|
2017-06-21 16:08:26 -04:00
|
|
|
|
2017-07-10 13:09:50 -04:00
|
|
|
# Redirect old cli-reference to the OSC latest docs
|
|
|
|
redirectmatch 301 "^/cli-reference/.*$" /python-openstackclient/latest/
|
|
|
|
|
2017-06-21 16:08:26 -04:00
|
|
|
# Redirects from service-type to code-name
|
|
|
|
{% for project in projects -%}
|
2017-07-14 12:28:45 -04:00
|
|
|
{%- if project.type == 'service' and project.service_type and (project.service_type|lower != project.name) %}
|
2017-06-21 16:08:26 -04:00
|
|
|
redirectmatch 302 "^/{{project.service_type|lower}}/.*$" /{{project.name}}/latest/
|
|
|
|
{%- endif %}
|
|
|
|
{%- endfor %}
|
|
|
|
# End service-type redirects
|
2017-06-27 10:45:06 -04:00
|
|
|
|
|
|
|
# Redirects from code-name without a series to latest
|
2017-07-06 13:51:04 -04:00
|
|
|
{% for repo in REGULAR_REPOS %}
|
|
|
|
redirectmatch 301 "^/{{repo.base}}/$" /{{repo.base}}/latest/
|
2017-06-27 10:45:06 -04:00
|
|
|
{%- endfor %}
|
2017-07-06 13:51:04 -04:00
|
|
|
# End latest code-name redirects
|
|
|
|
|
|
|
|
# Redirects from infra code-name without a series to location
|
|
|
|
{% for repo in INFRA_REPOS %}
|
|
|
|
redirectmatch 301 "^/{{repo.base}}/$" /infra/{{repo.base}}/
|
|
|
|
{%- endfor %}
|
|
|
|
# End infra code-name redirects
|