openstack-manuals/www/static/.htaccess

223 lines
14 KiB
ApacheConf

# 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
# Redirect for the original version of compute
redirect 301 /openstack-compute/ /
# Redirect for the original version of storage
redirect 301 /openstack-object-storage/ /
# Redirect for the 1.1 version of the Compute API going to v2
redirect 301 /api/openstack-compute/1.1/ /api/openstack-compute/2/
# Redirect image metadata and format reference
redirect 301 /trunk/openstack-compute/admin/content/adding-images.html /cli-reference/content/chapter_cli-glance-property.html
# Redirect config reference precisely
redirect 301 /trunk/openstack-compute/admin/content/compute-options-reference.html /mitaka/config-reference/compute/nova-conf.html
redirect 301 /trunk/openstack-compute/starter/ /trunk/
# Redirecting incubation quantum
redirect 301 /incubation/openstack-network/admin/content/ /trunk/openstack-network/admin/content
redirect 301 /incubation/openstack-network/developer/quantum-api-1.0/content/ /api/openstack-network/1.0/content/
# Redirecting old install guide to apt (could be yum, analytics show more seek apt)
redirect 301 /trunk/openstack-compute/install/content /trunk/openstack-compute/install/yum/content
# Redirecting trunk basic install to install guide
redirect 301 /trunk/basic-install/apt/content /mitaka/install-guide-ubuntu/
redirect 301 /trunk/basic-install/yum/content /mitaka/install-guide-rdo/
# Redirecting trunk admin guides to admin-guide
redirect 301 /trunk/openstack-block-storage/admin/content/ /admin-guide/
redirect 301 /trunk/openstack-compute/admin/content/ /admin-guide/
redirect 301 /trunk/openstack-object-storage/admin/content/ /admin-guide/
# Redirecting Image Guide to new location
redirect 301 /trunk/openstack-image/content/ /image-guide/
# Redirecting HA Guide to new location
redirect 301 /trunk/openstack-ha/content/ /ha-guide
redirectmatch 301 /high-availability-guide/.*$ /ha-guide/index.html
# Redirecting security guide to new location
redirectmatch 301 /trunk/openstack-security/content/.*$ /security-guide/index.html
redirectmatch 301 /trunk/security-guide/content/.*$ /security-guide/index.html
redirectmatch 301 /security-guide/content/.*$ /security-guide/index.html
# Redirecting API Programming with Compute API to API Quick Start
redirectmatch 301 /api/openstack-compute/programmer/content/.*$ http://developer.openstack.org/api-guide/quick-start/
# Redirect docs.openstack.org index.html subpage pointers to main page
redirect 301 /install/ /
redirect 301 /basic-install/ /
redirect 301 /run/ /
redirect 301 /api/index.html /
redirect 301 /developer/index.html /developer/openstack-projects.html
redirect 301 /cli/ /
redirect 301 /incubation/ /
# Redirect old identity/api to api site
redirectmatch /identity/api/.*$ http://developer.openstack.org/
# Redirect old Networking Admin Guide to Configuration Reference
redirectmatch /trunk/openstack-network/admin/content/.*$ /admin-guide/index.html
redirectmatch /network-admin/admin/content/.*$ /admin-guide/index.html
# Redirect O'Reilly Operations Guide PDF to trunk version
redirect 301 /trunk/openstack-ops/oreilly-openstack-ops-guide.pdf /openstack-ops/openstack-ops-manual.pdf
# Redirect Operations Guide to /openstack-ops
redirectmatch 301 /trunk/openstack-ops/.*$ /ops-guide/
# 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
# Redirect links to Architecture Design Guide epub from arc to arch
redirect 301 /arc/OpenStackArchitectureDesignGuide.epub /arch/OpenStackArchitectureDesignGuide.epub
# Redirect renamed ironic developer doc directories
redirect 301 /developer/ironic/install/ironic-install.html /developer/ironic/deploy/install-guide.html
redirect 301 /developer/ironic/dev/api-spec-v1.html /developer/ironic/webapi/v1.html
# Redirect API docs that have been put in openstack-attic
redirectmatch 301 /api/openstack-block-storage/1.0/content/.*$ http://developer.openstack.org/api-ref-blockstorage-v1.html
redirectmatch 301 /api/openstack-block-storage/2.0/content/.*$ http://developer.openstack.org/api-ref-blockstorage-v2.html
redirectmatch 301 /api/openstack-compute/2/content/.*$ http://developer.openstack.org/api-ref-compute-v2.html
redirectmatch 301 /api/openstack-databases/content/.*$ http://developer.openstack.org/api-ref-databases-v1.html
redirectmatch 301 /api/openstack-identity-service/2.0/content/.*$ http://developer.openstack.org/api-ref-identity-v2.html
redirectmatch 301 /api/openstack-identity-service/3/content/.*$ http://developer.openstack.org/api-ref-identity-v3.html
redirectmatch 301 /api/openstack-image-service/1.0/content/.*$ http://developer.openstack.org/api-ref-image-v1.html
redirectmatch 301 /api/openstack-image-service/1.1/content/.*$ http://developer.openstack.org/api-ref-image-v1.html
redirectmatch 301 /api/openstack-image-service/2.0/content/.*$ http://developer.openstack.org/api-ref-image-v2.html
redirectmatch 301 /api/openstack-network/2.0/content/.*$ http://developer.openstack.org/api-ref-networking-v2.html
redirectmatch 301 /api/openstack-object-storage/1.0/content/.*$ http://developer.openstack.org/api-ref-objectstorage-v1.html
redirectmatch 301 /api/openstack-objectstorage/1.0/content/.*$ http://developer.openstack.org/api-ref-objectstorage-v1.html
redirect 301 /api/openstack-image-service/2.0/content/appendix-b-http-patch-media-types.html http://specs.openstack.org/openstack/glance-specs/specs/api/v2/http-patch-image-api-v2.html
# Redirect /trunk/index.html to /index.html
redirect 301 /trunk/index.html /index.html
# Redirect trunk/config-reference to mitaka/config-reference
redirectmatch 301 /trunk/config-reference/content/(.*) /mitaka/config-reference/index.html
# Redirect trove install guide
redirectmatch 301 "^/juno/install-guide/install/.*/ch_trove.html$" /
redirectmatch 301 "^/juno/install-guide/install/.*/trove.*$" /
redirectmatch 301 "^/kilo/install-guide/install/.*/ch_trove.html$" /
redirectmatch 301 "^/kilo/install-guide/install/.*/trove.*$" /
# Redirect sahara install guide
redirectmatch 301 "^/juno/install-guide/install/.*/ch_sahara.html$" /
redirectmatch 301 "^/juno/install-guide/install/.*/sahara.*$" /
redirectmatch 301 "^/kilo/install-guide/install/.*/ch_sahara.html$" /
redirectmatch 301 "^/kilo/install-guide/install/.*/sahara.*$" /
# Redirect old networking content to root for now
redirectmatch 301 /openstack-network/.*$ /index.html
# Redirect renamed common files
redirectmatch 301 ^/([a-z-]+)/common/app_support.html /$1/common/app-support.html
redirectmatch 301 ^/([a-z-]+)/common/cli_discover_version_number_for_a_client.html /$1/common/cli-discover-version-number-for-a-client.html
redirectmatch 301 ^/([a-z-]+)/common/cli_install_openstack_command_line_clients.html /$1/common/cli-install-openstack-command-line-clients.html
redirectmatch 301 ^/([a-z-]+)/common/cli_manage_images.html /$1/common/cli-manage-images.html
redirectmatch 301 ^/([a-z-]+)/common/cli_manage_volumes.html /$1/common/cli-manage-volumes.html
redirectmatch 301 ^/([a-z-]+)/common/cli_overview.html /$1/common/cli-overview.html
redirectmatch 301 ^/([a-z-]+)/common/cli_set_environment_variables_using_openstack_rc.html /$1/common/cli-set-environment-variables-using-openstack-rc.html
redirectmatch 301 ^/([a-z-]+)/common/dashboard_customizing.html /$1/common/dashboard-customizing.html
redirectmatch 301 ^/([a-z-]+)/common/get_started_block_storage.html /$1/common/get-started-block-storage.html
redirectmatch 301 ^/([a-z-]+)/common/get_started_compute.html /$1/common/get-started-compute.html
redirectmatch 301 ^/([a-z-]+)/common/get_started_conceptual_architecture.html /$1/common/get-started-conceptual-architecture.html
redirectmatch 301 ^/([a-z-]+)/common/get_started_dashboard.html /$1/common/get-started-dashboard.html
redirectmatch 301 ^/([a-z-]+)/common/get_started_data_processing.html /$1/common/get-started-data-processing.html
redirectmatch 301 ^/([a-z-]+)/common/get_started_database_service.html /$1/common/get-started-database-service.html
redirectmatch 301 ^/([a-z-]+)/common/get_started_feedback.html /$1/common/get-started-feedback.html
redirectmatch 301 ^/([a-z-]+)/common/get_started_identity.html /$1/common/get-started-identity.html
redirectmatch 301 ^/([a-z-]+)/common/get_started_image_service.html /$1/common/get-started-image-service.html
redirectmatch 301 ^/([a-z-]+)/common/get_started_logical_architecture.html /$1/common/get-started-logical-architecture.html
redirectmatch 301 ^/([a-z-]+)/common/get_started_networking.html /$1/common/get-started-networking.html
redirectmatch 301 ^/([a-z-]+)/common/get_started_object_storage.html /$1/common/get-started-object-storage.html
redirectmatch 301 ^/([a-z-]+)/common/get_started_openstack_services.html /$1/common/get-started-openstack-services.html
redirectmatch 301 ^/([a-z-]+)/common/get_started_orchestration.html /$1/common/get-started-orchestration.html
redirectmatch 301 ^/([a-z-]+)/common/get_started_shared_file_systems.html /$1/common/get-started-shared-file-systems.html
redirectmatch 301 ^/([a-z-]+)/common/get_started_storage_concepts.html /$1/common/get-started-storage-concepts.html
redirectmatch 301 ^/([a-z-]+)/common/get_started_telemetry.html /$1/common/get-started-telemetry.html
redirectmatch 301 ^/([a-z-]+)/common/get_started_with_openstack.html /$1/common/get-started-with-openstack.html
redirectmatch 301 ^/([a-z-]+)/common/nova_show_usage_statistics_for_hosts_instances.html /$1/common/nova-show-usage-statistics-for-hosts-instances.html
# Redirect top ten (or so) User Guide pages post-migration
redirect 301 /user-guide/content/app_community_support.html /user-guide/common/app-support.html
redirect 301 /user-guide/content/checking_version_cli.html /user-guide/common/cli-discover-version-number-for-a-client.html
redirect 301 /user-guide/content/install_clients.html /user-guide/common/cli-install-openstack-command-line-clients.html
redirect 301 /user-guide/content/ssh-into-instance.html /user-guide/dashboard_launch_instances.html#connect-to-your-instance-by-using-ssh
redirect 301 /user-guide/content/app_cheat_sheet.html /user-guide/cli_cheat_sheet.html
redirect 301 /user-guide/content/Launching_Instances_using_Dashboard.html /user-guide/dashboard_launch_instances.html
# Redirect top ten (or so) Admin User Guide pages post-migration
redirect 301 /user-guide-admin/content/specify-host-to-boot-instances-on.html /admin-guide/cli_nova_specify_host.html
redirect 301 /user-guide-admin/content/nova_cli_migrate_single.html /admin-guide/cli_nova_migrate.html
redirect 301 /admin-guide-cloud/content/customize-flavors.html /admin-guide/compute-flavors.html
# Since we don't have a direct match for all file, redirect to the index page.
redirectmatch 301 "^/user-guide/content/.*$" /user-guide/index.html
redirectmatch 301 "^/user-guide-admin/.*$" /admin-guide/index.html
redirectmatch 301 "^/image-guide/content/.*$" /image-guide/index.html
redirectmatch 301 "^/arch-design/content/.*$" /arch-design/index.html
redirectmatch 301 "^/cli-reference/content/.*$" /cli-reference/index.html
redirectmatch 301 "^/admin-guide-cloud/.*$" /admin-guide/index.html
redirectmatch 301 "^/openstack-ops/content/.*$" /ops-guide/index.html
# Hot-guide has moved to heat repo
redirect 301 /user-guide/hot-guide/hot.html /developer/heat/template_guide/hot_guide.html
redirect 301 /user-guide/hot-guide/ /developer/heat/template_guide/
# All these files should be a direct match, file name for file name.
redirect 301 /hot-guide/content/ /developer/heat/template_guide/
# Redirect HOT reference guide to heat template guide
redirect 301 /hot-reference/content/ /developer/heat/template_guide/
# Redirect networking-guide since it is now versioned
redirect 301 /networking-guide/ /mitaka/networking-guide/
# Redirect nova/devref/
redirectmatch 301 ^/developer/nova/devref/(.+)$ /developer/nova/$1
redirect 301 /developer/nova/nova.concepts.html /developer/nova/
# Redirect API Quick Start after migration to RST
redirect 301 /api/quick-start/content/ http://developer.openstack.org/api-guide/quick-start/
# Redirect old releases content to new location
redirectmatch 301 "^/releases.*$" http://releases.openstack.org$1
# Redirect outdated glossary to new location
redirectmatch 301 /glossary/content/glossary.html /user-guide/common/glossary.html
# Temporary redirect (307) until these guides are ready
redirectmatch 307 ^/mitaka/install-guide-debian/.*$ /mitaka/index.html
# Redirect old Configuration Reference pages to new location
redirect 301 /mitaka/config-reference/database-service/databaseservice_db.html /mitaka/config-reference/database-service/database.html
redirect 301 /mitaka/config-reference/database-service/databaseservice_rpc.html /mitaka/config-reference/database-service/rpc.html
redirect 301 /mitaka/config-reference/image-service/image_service_api.html /mitaka/config-reference/image-service/api.html
redirect 301 /mitaka/config-reference/image-service/image_service_backends.html /mitaka/config-reference/image-service/backends.html
redirect 301 /mitaka/config-reference/image-service/image_service_rpc.html /mitaka/config-reference/image-service/rpc.html
redirect 301 /mitaka/config-reference/orchestration/orchestration_api.html /mitaka/config-reference/orchestration/api.html
redirect 301 /mitaka/config-reference/orchestration/orchestration_clients.html /mitaka/config-reference/orchestration/clients.html
redirect 301 /mitaka/config-reference/orchestration/orchestration_rpc.html /mitaka/config-reference/orchestration/rpc.html
redirect 301 /mitaka/config-reference/telemetry/alarming_service_config_opts.html /mitaka/config-reference/telemetry/alarming-config-options.html
redirect 301 /mitaka/config-reference/telemetry/telemetry_service_config_opts.html /mitaka/config-reference/telemetry/telemetry-config-options.html