Skip to content

Commit abcb313

Browse files
authored
Merge pull request #67030 from sjhala-ccs/fixing-infinite-redirect-loop
CNV-26967: Fixed infinite redirect loop issue
2 parents b22b2d9 + f2ac026 commit abcb313

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,13 @@ 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+
# 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]
164+
162165
# OpenShift Virtualization (CNV) catchall redirect; use when CNV releases asynchronously from OCP. Do not change the 302 to a 301.
163166
# 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.
167+
# Pay mind to the redirect directly above this which prevents redirect loops.
168+
# To activate the redirects, uncomment the next and previous lines and update the version number to the pending release.
165169
RewriteRule ^(latest|4\.14)/virt/(?!about-virt\.html)(.+)$ /$1/virt/about_virt/about-virt.html [NE,R=302]
166170

167171
</Directory>

0 commit comments

Comments
 (0)