Skip to content

Commit d4c2a66

Browse files
authored
Merge pull request #66952 from sjhala-ccs/cnv-26967-adding-redirect-rule
CNV-26967: Adding redirect rule to prevent CNV from releasing with OCP
2 parents 1e9f45f + 296e5ec commit d4c2a66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ AddType text/vtt vtt
428428
# OpenShift Virtualization (CNV) catchall redirect; use when CNV releases asynchronously from OCP. Do not change the 302 to a 301.
429429
# When uncommented, this redirects all `virt` directory traffic to the about-virt page.
430430
# To activate the redirects, uncomment the next line and update the version number to the pending release.
431-
# RewriteRule container-platform/4\.12/virt/(?!about-virt\.html)(.+)$ /container-platform/4.12/virt/about-virt.html [NE,R=302]
431+
RewriteRule container-platform/4\.14/virt/(?!about-virt\.html)(.+)$ /container-platform/4.14/virt/about_virt/about-virt.html [NE,R=302]
432432

433433
# Serverless Redirects
434434
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ AddType text/vtt vtt
162162
# OpenShift Virtualization (CNV) catchall redirect; use when CNV releases asynchronously from OCP. Do not change the 302 to a 301.
163163
# When uncommented, this redirects all `virt` directory traffic to the about-virt page.
164164
# To activate the redirects, uncomment the next line and update the version number to the pending release.
165-
# RewriteRule ^(latest|4\.12)/virt/(?!about-virt\.html)(.+)$ /$1/virt/about-virt.html [NE,R=302]
165+
RewriteRule ^(latest|4\.14)/virt/(?!about-virt\.html)(.+)$ /$1/virt/about_virt/about-virt.html [NE,R=302]
166166

167167
</Directory>
168168
</IfModule>

0 commit comments

Comments
 (0)