Skip to content

Commit f6b7d9d

Browse files
authored
Merge pull request #65204 from gabriel-rh/RHDEVDOCS-5358-gitops-latest-redirect
RHDEVDOCS-5358 set up latest redirects for gitops
2 parents a029956 + ffee171 commit f6b7d9d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,15 @@ AddType text/vtt vtt
233233
# redirect any links to existing ROSA/Dedicated embedded content to standalone equivalent
234234
RewriteRule ^(rosa|dedicated)/serverless/?(.*)$ /serverless/1.30/$2 [L,R=302]
235235

236+
237+
# redirect gitops latest to 1.9
238+
RewriteRule ^gitops/?$ /gitops/latest [R=302]
239+
RewriteRule ^gitops/latest/?(.*)$ /gitops/1\.9/$1 [NE,R=302]
240+
241+
# redirect top-level without filespec to the about file
242+
RewriteRule ^gitops/(1\.8|1\.9)/?$ /gitops/$1/understanding_openshift_gitops/about-redhat-openshift-gitops.html [L,R=302]
243+
244+
236245
# Pipelines handling unversioned and latest links
237246
RewriteRule ^pipelines/?$ /pipelines/latest [R=302]
238247
RewriteRule ^pipelines/latest/?(.*)$ /pipelines/1\.11/$1 [NE,R=302]

0 commit comments

Comments
 (0)