Skip to content

Commit 28ee2bf

Browse files
authored
Merge pull request #46336 from ousleyp/old-redirect-notes
[virt] Removing old redirects and clarifying redirect comments
2 parents f6e9d06 + 033f20c commit 28ee2bf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,10 @@ AddType text/vtt vtt
283283
RewriteRule ^container-platform/(4\.4|4\.5)/authentication/certificates/(.*)$ /container-platform/$1/security/certificates/$2 [NE,R=301]
284284
RewriteRule ^container-platform/(4\.4|4\.5)/authentication/(allowing-javascript-access-api-server|encrypting-etcd|certificate-types-descriptions)\.html$ /container-platform/$1/security/$2\.html [NE,R=301]
285285

286-
# CNV redirects to OpenShift Virtualization from 4.5 GA onwards
287-
# NOTE THAT THESE ARE A 302 REDIRECT, not a 301. Replace with 301 at CNV GA
288-
# send all cnv/ to virt/about-virt.html.
289-
# send all virt/ to virt/about-virt.html excluding about-virt.html otherwise there is an infinite loop
286+
# OpenShift Virtualization (CNV) catchall redirect; use when CNV releases asynchronously from OCP. Do not change the 302 to a 301.
287+
# When uncommented, this redirects all `virt` directory traffic to the about-virt page.
288+
# To activate the redirects, uncomment the next line and update the version number to the pending release.
290289
# RewriteRule container-platform/4\.10/virt/(?!about-virt\.html)(.+)$ /container-platform/4.10/virt/about-virt.html [NE,R=302]
291-
# RewriteRule container-platform/4\.5/cnv/?(.*)$ /container-platform/4.5/virt/about-virt.html [NE,R=301]
292290

293291
# Serverless Redirects
294292
RewriteRule container-platform/(4\.5|4\.6)/serverless/knative_eventing/(serverless-subscriptions\.html|serverless-channels\.html|serverless-subscriptions\.html) /container-platform/$1/serverless/event_workflows/serverless-channels.html [NE,R=301]

0 commit comments

Comments
 (0)