Skip to content

Commit d6e84d6

Browse files
author
Shikha Jhala
committed
CNV-32743: Reversing CNV redirect rules
1 parent 0f4fd70 commit d6e84d6

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
@@ -528,14 +528,14 @@ AddType text/vtt vtt
528528

529529

530530
# The following rule prevents an infinite redirect loop when browsing to /container-platform/4.16/virt/about_virt/about-virt.html
531-
RewriteRule ^container-platform/4\.17/virt/about_virt/about-virt.html$ - [L]
531+
# RewriteRule ^container-platform/4\.17/virt/about_virt/about-virt.html$ - [L]
532532

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

538-
RewriteRule container-platform/4\.17/virt/(?!about-virt\.html)(.+)$ /container-platform/4.17/virt/about_virt/about-virt.html [NE,R=302]
538+
# RewriteRule container-platform/4\.17/virt/(?!about-virt\.html)(.+)$ /container-platform/4.17/virt/about_virt/about-virt.html [NE,R=302]
539539

540540

541541
# Red Hat OpenShift support for Windows Containers (WMCO) catchall redirect; use when WMCO releases asynchronously from OCP. Do not change the 302 to a 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\.16)/virt/about_virt/about-virt.html
163-
RewriteRule ^(latest|4\.17)/virt/about_virt/about-virt.html$ - [L]
163+
# RewriteRule ^(latest|4\.17)/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\.17)/virt/(?!about-virt\.html)(.+)$ /$1/virt/about_virt/about-virt.html [NE,R=302]
169+
# RewriteRule ^(latest|4\.17)/virt/(?!about-virt\.html)(.+)$ /$1/virt/about_virt/about-virt.html [NE,R=302]
170170

171171
# Red Hat OpenShift support for Windows Containers (WMCO) catchall redirect; use when WMCO releases asynchronously from OCP. Do not change the 302 to a 301.
172172
# When uncommented, this redirects all `windows_containers` directory traffic to the /windows_containers/index.html page.

0 commit comments

Comments
 (0)