From 551cfeeeec1bda2a6884231b3eb8af9b30d7820a Mon Sep 17 00:00:00 2001 From: Eric Fried Date: Tue, 5 Sep 2017 07:22:23 -0500 Subject: [PATCH] Redirect shared-file-systems to shared-file-system The official service type for Manila is shared-file-system (singular). The official API reference should be standardized accordingly, and in fact, this is the case ([1] is following the latest commits; [2] stopped being updated on 20170718). This change accordingly updates static links within this project, and adds 301 redirects for anything pointing to the old path. [1] https://developer.openstack.org/api-ref/shared-file-system/ [2] https://developer.openstack.org/api-ref/shared-file-systems/ Change-Id: I24019199bed3eb4eb7030bf49fb04a910a674675 --- www/static/.htaccess | 6 ++++-- www/static/sitemap.xml | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/www/static/.htaccess b/www/static/.htaccess index f4ac74676..a418f671a 100644 --- a/www/static/.htaccess +++ b/www/static/.htaccess @@ -41,9 +41,11 @@ redirect 301 /api-ref-objectstorage-v1.html /api-ref/object-storage/index.html # Redirect Orchestration API redirect 301 /api-ref-orchestration-v1.html /api-ref/orchestration/index.html # Redirect Shared File Systems API v2 -redirect 301 /api-ref-share-v2.html /api-ref/shared-file-systems/index.html +redirect 301 /api-ref-share-v2.html /api-ref/shared-file-system/index.html # Redirect Shared File Systems API v1 -redirect 301 /api-ref-share-v1.html /api-ref/shared-file-systems/index.html +redirect 301 /api-ref-share-v1.html /api-ref/shared-file-system/index.html +# Redirect "shared-file-systems" (plural) links to official "shared-file-system" (singular) +redirectmatch 301 /api-ref/shared-file-systems/(.*) /api-ref/shared-file-system/$1 # Redirect Telemetry (ceilometer only) API redirect 301 /api-ref-telemetry-v2.html http://docs.openstack.org/developer/ceilometer/webapi/v2.html # Redirect senlin old service-type resource-cluster to clustering diff --git a/www/static/sitemap.xml b/www/static/sitemap.xml index fa738a97c..76a97029f 100644 --- a/www/static/sitemap.xml +++ b/www/static/sitemap.xml @@ -169,7 +169,7 @@ 1.0 - https://developer.openstack.org/api-ref/shared-file-systems/ + https://developer.openstack.org/api-ref/shared-file-system/ 2017-02-22T17:05:58+0000 daily @@ -505,7 +505,7 @@ 1.0 - https://developer.openstack.org/api-ref/shared-file-systems/index.html + https://developer.openstack.org/api-ref/shared-file-system/index.html 2017-02-22T17:05:58+0000 daily