From 83d04342190792182cc2a6b23b9668242c4330fa Mon Sep 17 00:00:00 2001 From: Billy Tat Date: Wed, 4 Oct 2023 16:42:30 -0700 Subject: [PATCH] Use versioned link for Rancher v2.7 redirects --- nginx.conf | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/nginx.conf b/nginx.conf index e4dd3b2d02..52e66ddce4 100644 --- a/nginx.conf +++ b/nginx.conf @@ -220,23 +220,23 @@ map $request_uri $redirect_uri { # Redirects for Rancher Manager Docusaurus docs - ~^/docs/rancher/v2.7/?$ https://ranchermanager.docs.rancher.com; - ~^/docs/rancher/v2.7/en/?$ https://ranchermanager.docs.rancher.com; + ~^/docs/rancher/v2.7/?$ https://ranchermanager.docs.rancher.com/v2.7; + ~^/docs/rancher/v2.7/en/?$ https://ranchermanager.docs.rancher.com/v2.7; - ~^/docs/rancher/v2.7/en/admin-settings/authentication/google/?$ https://ranchermanager.docs.rancher.com/how-to-guides/advanced-user-guides/authentication-permissions-and-global-configuration/about-authentication/authentication-config/configure-google-oauth; - ~^/docs/rancher/v2.7/en/monitoring-alerting/configuration/?$ https://ranchermanager.docs.rancher.com/pages-for-subheaders/monitoring-v2-configuration-guides; - ~^/docs/rancher/v2.7/en/cluster-provisioning/rke-clusters/behavior-differences-between-rke1-and-rke2/?$ https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/launch-kubernetes-with-rancher/rke1-vs-rke2-differences; - ~^/docs/rancher/v2.7/en/monitoring-alerting/?$ https://ranchermanager.docs.rancher.com/pages-for-subheaders/monitoring-and-alerting; - ~^/docs/rancher/v2.7/en/monitoring-alerting/guides/migrating/?$ https://ranchermanager.docs.rancher.com/how-to-guides/advanced-user-guides/monitoring-alerting-guides/migrate-to-rancher-v25+-monitoring; - ~^/docs/rancher/v2.7/en/faq/telemetry/?$ https://ranchermanager.docs.rancher.com/faq/telemetry; - ~^/docs/rancher/v2.7/en/logging/migrating/?$ https://ranchermanager.docs.rancher.com/explanations/integrations-in-rancher/logging/migrate-to-rancher-v25+-logging; - ~^/docs/rancher/v2.7/en/istio/?$ https://ranchermanager.docs.rancher.com/pages-for-subheaders/istio; + ~^/docs/rancher/v2.7/en/admin-settings/authentication/google/?$ https://ranchermanager.docs.rancher.com/v2.7/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/authentication-config/configure-google-oauth; + ~^/docs/rancher/v2.7/en/monitoring-alerting/configuration/?$ https://ranchermanager.docs.rancher.com/v2.7/pages-for-subheaders/monitoring-v2-configuration-guides; + ~^/docs/rancher/v2.7/en/cluster-provisioning/rke-clusters/behavior-differences-between-rke1-and-rke2/?$ https://ranchermanager.docs.rancher.com/v2.7/how-to-guides/new-user-guides/launch-kubernetes-with-rancher/rke1-vs-rke2-differences; + ~^/docs/rancher/v2.7/en/monitoring-alerting/?$ https://ranchermanager.docs.rancher.com/v2.7/pages-for-subheaders/monitoring-and-alerting; + ~^/docs/rancher/v2.7/en/monitoring-alerting/guides/migrating/?$ https://ranchermanager.docs.rancher.com/v2.7/how-to-guides/advanced-user-guides/monitoring-alerting-guides/migrate-to-rancher-v25+-monitoring; + ~^/docs/rancher/v2.7/en/faq/telemetry/?$ https://ranchermanager.docs.rancher.com/v2.7/faq/telemetry; + ~^/docs/rancher/v2.7/en/logging/migrating/?$ https://ranchermanager.docs.rancher.com/v2.7/explanations/integrations-in-rancher/logging/migrate-to-rancher-v25+-logging; + ~^/docs/rancher/v2.7/en/istio/?$ https://ranchermanager.docs.rancher.com/v2.7/pages-for-subheaders/istio; - ~^/docs/rancher/v2.7/en/tools/pipelines/configurations/?$ https://ranchermanager.docs.rancher.com/pages-for-subheaders/pipelines; - ~^/docs/rancher/v2.7/en/security/security-scan/?$ https://ranchermanager.docs.rancher.com/pages-for-subheaders/cis-scans; - ~^/docs/rancher/v2.7/en/cluster-admin/tools/monitoring/?$ https://ranchermanager.docs.rancher.com/pages-for-subheaders/monitoring-and-alerting; - ~^/docs/rancher/v2.7/en/cluster-provisioning/rke-clusters/options/?$ https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke1-cluster-configuration; - ~^/docs/rancher/v2.7/en/installing-rancher/installing-server/basic-ssl-config/?$ https://ranchermanager.docs.rancher.com/pages-for-subheaders/install-upgrade-on-a-kubernetes-cluster#3-choose-your-ssl-configuration; + ~^/docs/rancher/v2.7/en/tools/pipelines/configurations/?$ https://ranchermanager.docs.rancher.com/v2.7/pages-for-subheaders/pipelines; + ~^/docs/rancher/v2.7/en/security/security-scan/?$ https://ranchermanager.docs.rancher.com/v2.7/pages-for-subheaders/cis-scans; + ~^/docs/rancher/v2.7/en/cluster-admin/tools/monitoring/?$ https://ranchermanager.docs.rancher.com/v2.7/pages-for-subheaders/monitoring-and-alerting; + ~^/docs/rancher/v2.7/en/cluster-provisioning/rke-clusters/options/?$ https://ranchermanager.docs.rancher.com/v2.7/reference-guides/cluster-configuration/rancher-server-configuration/rke1-cluster-configuration; + ~^/docs/rancher/v2.7/en/installing-rancher/installing-server/basic-ssl-config/?$ https://ranchermanager.docs.rancher.com/v2.7/pages-for-subheaders/install-upgrade-on-a-kubernetes-cluster#3-choose-your-ssl-configuration; ~^/docs/rancher/v2.7/en/cluster-provisioning/hosted-kubernetes-clusters/gke/?$ https://ranchermanager.docs.rancher.com/v2.7/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/set-up-clusters-from-hosted-kubernetes-providers/gke; ~^/docs/rancher/v2.7/en/cluster-provisioning/hosted-kubernetes-clusters/aks/?$ https://ranchermanager.docs.rancher.com/v2.7/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/set-up-clusters-from-hosted-kubernetes-providers/aks;