Skip to content

Commit 1464b88

Browse files
authored
Merge pull request #50265 from sjhala-ccs/fix-okd-virt-redirect
[virt] Added CNV redirect rule for OKD
2 parents 3442d02 + aef54a4 commit 1464b88

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ AddType text/vtt vtt
159159
RewriteRule ^latest/install_config/upgrades\.html(.*)$ /latest/install_config/upgrading/index.html$1 [NE,R=301]
160160
RewriteRule ^latest/install_config/upgrading/(.*)$ /latest/upgrading/$1 [NE,R=301]
161161

162+
# OpenShift Virtualization (CNV) catchall redirect; use when CNV releases asynchronously from OCP. Do not change the 302 to a 301.
163+
# When uncommented, this redirects all `virt` directory traffic to the about-virt page.
164+
# To activate the redirects, uncomment the next line and update the version number to the pending release.
165+
RewriteRule ^latest/virt/(?!about-virt\.html)(.+)$ /latest/virt/about-virt.html [NE,R=302]
166+
162167
</Directory>
163168
</IfModule>
164169

0 commit comments

Comments
 (0)