Skip to content

Commit 8d5eb4e

Browse files
committed
Updating 302's to 301's for redirects older than 2 weeks
1 parent f5b2eb6 commit 8d5eb4e

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.s2i/httpd-cfg/01-commercial.conf

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ AddType text/vtt vtt
140140
# the first one redirects
141141
RewriteRule ^acs/?$ /acs/3.71/welcome/index.html [R=301]
142142
# redirect to the latest release notes
143-
RewriteRule ^acs/release_notes/?$ /acs/3.71/release_notes/371-release-notes.html [R=302,NE]
143+
RewriteRule ^acs/release_notes/?$ /acs/3.71/release_notes/371-release-notes.html [R=301,NE]
144144
RewriteRule ^acs/(\D.*)$ /acs/3.71/$1 [NE,R=301]
145145
RewriteRule ^acs/(3\.65|3\.66|3\.67|3\.68|3\.69|3\.70|3\.71)/?$ /acs/$1/welcome/index.html [L,R=301]
146146

@@ -164,7 +164,7 @@ AddType text/vtt vtt
164164
RewriteRule ^container-platform/(4\.8|4\.9)/updating/understanding-the-update-service.html /container-platform/$1/updating/updating-restricted-network-cluster.html [NE,R=301]
165165

166166
# Redirect for renamed external DNS page
167-
RewriteRule ^container-platform/4\.10/networking/external_dns_operator/nw-installing-external-dns-operator.html /container-platform/4.10/networking/external_dns_operator/nw-installing-external-dns-operator-on-cloud-providers.html [NE,R=302]
167+
RewriteRule ^container-platform/4\.10/networking/external_dns_operator/nw-installing-external-dns-operator.html /container-platform/4.10/networking/external_dns_operator/nw-installing-external-dns-operator-on-cloud-providers.html [NE,R=301]
168168

169169
# CNV scenarios based redirect
170170
RewriteRule ^container-platform/4\.8/virt/learn_more_about_ov.html /container-platform/4.8/virt/virt-learn-more-about-openshift-virtualization.html [NE,R=301]
@@ -551,33 +551,33 @@ AddType text/vtt vtt
551551
RewriteRule ^dedicated/architecture/additional_concepts/flannel\.html(.*) /dedicated/welcome/index.html$1 [NE,L,R=301]
552552

553553
# Redirects for Dedicated service log content move, applied in https://github.com/openshift/openshift-docs/pull/47033
554-
RewriteRule ^dedicated/osd_install_access_delete_cluster/notifications.html /dedicated/osd_cluster_admin/osd_logging/osd-accessing-the-service-logs.html [NE,R=302]
554+
RewriteRule ^dedicated/osd_install_access_delete_cluster/notifications.html /dedicated/osd_cluster_admin/osd_logging/osd-accessing-the-service-logs.html [NE,R=301]
555555

556556
# Redirects for the Dedicated restructure applied in https://github.com/openshift/openshift-docs/pull/41923 and https://github.com/openshift/openshift-docs/pull/43807
557-
RewriteRule ^dedicated/osd_quickstart/osd-quickstart.html /dedicated/osd_getting_started/osd-getting-started.html [NE,R=302]
557+
RewriteRule ^dedicated/osd_quickstart/osd-quickstart.html /dedicated/osd_getting_started/osd-getting-started.html [NE,R=301]
558558

559-
RewriteRule ^dedicated/osd_cluster_create/osd-understanding-your-cloud-deployment-options.html /dedicated/osd_getting_started/osd-understanding-your-cloud-deployment-options.html [NE,R=302]
560-
RewriteRule ^dedicated/osd_cluster_create/creating-an-aws-cluster.html /dedicated/osd_install_access_delete_cluster/creating-an-aws-cluster.html [NE,R=302]
561-
RewriteRule ^dedicated/osd_cluster_create/creating-a-gcp-cluster.html /dedicated/osd_install_access_delete_cluster/creating-a-gcp-cluster.html [NE,R=302]
559+
RewriteRule ^dedicated/osd_cluster_create/osd-understanding-your-cloud-deployment-options.html /dedicated/osd_getting_started/osd-understanding-your-cloud-deployment-options.html [NE,R=301]
560+
RewriteRule ^dedicated/osd_cluster_create/creating-an-aws-cluster.html /dedicated/osd_install_access_delete_cluster/creating-an-aws-cluster.html [NE,R=301]
561+
RewriteRule ^dedicated/osd_cluster_create/creating-a-gcp-cluster.html /dedicated/osd_install_access_delete_cluster/creating-a-gcp-cluster.html [NE,R=301]
562562

563-
RewriteRule ^dedicated/identity_providers/config-identity-providers.html /dedicated/osd_install_access_delete_cluster/config-identity-providers.html [NE,R=302]
563+
RewriteRule ^dedicated/identity_providers/config-identity-providers.html /dedicated/osd_install_access_delete_cluster/config-identity-providers.html [NE,R=301]
564564

565-
RewriteRule ^dedicated/administering_a_cluster/osd-admin-roles.html /dedicated/osd_cluster_admin/osd-admin-roles.html [NE,R=302]
565+
RewriteRule ^dedicated/administering_a_cluster/osd-admin-roles.html /dedicated/osd_cluster_admin/osd-admin-roles.html [NE,R=301]
566566

567-
RewriteRule ^dedicated/osd_private_connections/?(.*)$ /dedicated/osd_cluster_admin/osd_private_connections/$1 [NE,R=302]
567+
RewriteRule ^dedicated/osd_private_connections/?(.*)$ /dedicated/osd_cluster_admin/osd_private_connections/$1 [NE,R=301]
568568

569-
RewriteRule ^dedicated/nodes/rosa-managing-worker-nodes.html /dedicated/osd_cluster_admin/osd_nodes/osd-managing-worker-nodes.html [NE,R=302]
570-
RewriteRule ^dedicated/nodes/?(.*)$ /dedicated/osd_cluster_admin/osd_nodes/osd-$1 [NE,R=302]
569+
RewriteRule ^dedicated/nodes/rosa-managing-worker-nodes.html /dedicated/osd_cluster_admin/osd_nodes/osd-managing-worker-nodes.html [NE,R=301]
570+
RewriteRule ^dedicated/nodes/?(.*)$ /dedicated/osd_cluster_admin/osd_nodes/osd-$1 [NE,R=301]
571571

572-
RewriteRule ^dedicated/osd_notifications/notifications.html /dedicated/osd_cluster_admin/osd_logging/osd-accessing-the-service-logs.html [NE,R=302]
572+
RewriteRule ^dedicated/osd_notifications/notifications.html /dedicated/osd_cluster_admin/osd_logging/osd-accessing-the-service-logs.html [NE,R=301]
573573

574-
RewriteRule ^dedicated/monitoring/?(.*)$ /dedicated/osd_cluster_admin/osd_monitoring/$1 [NE,R=302]
574+
RewriteRule ^dedicated/monitoring/?(.*)$ /dedicated/osd_cluster_admin/osd_monitoring/$1 [NE,R=301]
575575

576-
RewriteRule ^dedicated/osd_policy/?(.*)$ /dedicated/osd_architecture/osd_policy/$1 [NE,R=302]
576+
RewriteRule ^dedicated/osd_policy/?(.*)$ /dedicated/osd_architecture/osd_policy/$1 [NE,R=301]
577577

578-
RewriteRule ^dedicated/support/getting-support.html /dedicated/osd_architecture/osd-support.html [NE,R=302]
579-
RewriteRule ^dedicated/support/summarizing-cluster-specifications.html /dedicated/osd_support/osd-summarizing-cluster-specifications.html [NE,R=302]
580-
RewriteRule ^dedicated/support/?(.*)$ /dedicated/osd_support/$1 [NE,R=302]
578+
RewriteRule ^dedicated/support/getting-support.html /dedicated/osd_architecture/osd-support.html [NE,R=301]
579+
RewriteRule ^dedicated/support/summarizing-cluster-specifications.html /dedicated/osd_support/osd-summarizing-cluster-specifications.html [NE,R=301]
580+
RewriteRule ^dedicated/support/?(.*)$ /dedicated/osd_support/$1 [NE,R=301]
581581

582582
# OCP specific redirects
583583
RewriteRule ^(container-platform|enterprise)/(3\.2|3\.3|3\.4|3\.5|3\.6|3\.7)/architecture/additional_concepts/throttling\.html(.*)$ /$1/$2/admin_guide/overcommit.html$3 [NE,L,R=301]

0 commit comments

Comments
 (0)