Skip to content

Commit 13f1b2f

Browse files
authored
Merge pull request #66964 from sjhala-ccs/cnv-26967-reversing-redirect-rule
CNV-26967: Reversing redirect to allow CNV content to go live on GA
2 parents 5fb882f + 02fd90b commit 13f1b2f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,14 +427,14 @@ AddType text/vtt vtt
427427

428428

429429
# The following rule prevents an infinite redirect loop when browsing to /container-platform/4.14/virt/about_virt/about-virt.html
430-
RewriteRule ^container-platform/4\.14/virt/about_virt/about-virt.html$ - [L]
430+
# RewriteRule ^container-platform/4\.14/virt/about_virt/about-virt.html$ - [L]
431431

432432
# OpenShift Virtualization (CNV) catchall redirect; use when CNV releases asynchronously from OCP. Do not change the 302 to a 301.
433433
# When uncommented, this redirects all `virt` directory traffic to the about-virt page.
434434
# Pay mind to the redirect directly above this which prevents redirect loops.
435435
# To activate the redirects, uncomment the next and previous lines and update the version number to the pending release.
436436

437-
RewriteRule container-platform/4\.14/virt/(?!about-virt\.html)(.+)$ /container-platform/4.14/virt/about_virt/about-virt.html [NE,R=302]
437+
# RewriteRule container-platform/4\.14/virt/(?!about-virt\.html)(.+)$ /container-platform/4.14/virt/about_virt/about-virt.html [NE,R=302]
438438

439439
# Serverless Redirects
440440
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]

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ AddType text/vtt vtt
160160
RewriteRule ^latest/install_config/upgrading/(.*)$ /latest/upgrading/$1 [NE,R=301]
161161

162162
# The following rule prevents an infinite redirect loop when browsing to /(latest|4\.14)/virt/about_virt/about-virt.html
163-
RewriteRule ^(latest|4\.14)/virt/about_virt/about-virt.html$ - [L]
163+
# RewriteRule ^(latest|4\.14)/virt/about_virt/about-virt.html$ - [L]
164164

165165
# OpenShift Virtualization (CNV) catchall redirect; use when CNV releases asynchronously from OCP. Do not change the 302 to a 301.
166166
# When uncommented, this redirects all `virt` directory traffic to the about-virt page.
167167
# Pay mind to the redirect directly above this which prevents redirect loops.
168168
# To activate the redirects, uncomment the next and previous lines and update the version number to the pending release.
169-
RewriteRule ^(latest|4\.14)/virt/(?!about-virt\.html)(.+)$ /$1/virt/about_virt/about-virt.html [NE,R=302]
169+
# RewriteRule ^(latest|4\.14)/virt/(?!about-virt\.html)(.+)$ /$1/virt/about_virt/about-virt.html [NE,R=302]
170170

171171
</Directory>
172172
</IfModule>

0 commit comments

Comments
 (0)