Skip to content

Commit fe7e771

Browse files
authored
Merge pull request #82613 from mramendi/redirects-gitops-rn
RHDEVDOCS 6185 redirects for release notes for GitOps and Pipelines
2 parents f3d1e78 + c97b075 commit fe7e771

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,13 @@ AddType text/vtt vtt
341341
# GitOps landing page
342342
RewriteRule ^container-platform/(4\.11|4\.12|4\.13|4\.14|4\.15|4\.16|4\.17|4\.18)/cicd/gitops/about-redhat-openshift-gitops.html /gitops/latest/understanding_openshift_gitops/about-redhat-openshift-gitops.html [L,R=302]
343343

344+
# GitOps release notes version switch
345+
346+
RewriteRule ^gitops/1\.(8|9|10|11|12|13)/release_notes/gitops-release-notes-1-([0-9]+)\.html$ gitops/1.$1/release_notes/gitops-release-notes.html [L,R=302]
347+
RewriteRule ^gitops/1\.14/release_notes/gitops-release-notes-1-14\.html$ - [L]
348+
RewriteRule ^gitops/1\.15/release_notes/gitops-release-notes-1-15\.html$ - [L]
349+
RewriteRule ^gitops/1\.(14|15)/release_notes/gitops-release-notes?(.*)\.html$ gitops/1.$1/release_notes/gitops-release-notes-1-$1.html [L,R=302]
350+
344351
# redirect any links to existing OCP embedded content to standalone equivalent for each assembly
345352
RewriteRule ^container-platform/(4\.11|4\.12|4\.13|4\.14|4\.15|4\.16|4\.17|4\.18)/cicd/gitops/gitops-release-notes.html/ /gitops/latest/release_notes/gitops-release-notes-1-14.html [L,R=302]
346353
RewriteRule ^container-platform/(4\.11|4\.12|4\.13|4\.14|4\.15|4\.16|4\.17|4\.18)/cicd/gitops/understanding-openshift-gitops.html /gitops/latest/understanding_openshift_gitops/about-redhat-openshift-gitops.html [L,R=302]
@@ -385,6 +392,15 @@ AddType text/vtt vtt
385392
RewriteRule ^pipelines/?$ /pipelines/latest [R=302]
386393
RewriteRule ^pipelines/latest/?(.*)$ /pipelines/1\.15/$1 [NE,R=302]
387394

395+
# Pipelines release notes version switch
396+
397+
RewriteRule ^pipelines/1\.(10|11|12|13|14|15)/release_notes/op-release-notes-1-([0-9]+)\.html$ pipelines/1.$1/about/op-release-notes.html [L,R=302]
398+
RewriteRule ^pipelines/1\.16/release_notes/op-release-notes-1-16\.html$ - [L]
399+
RewriteRule ^pipelines/1\.17/release_notes/op-release-notes-1-17\.html$ - [L]
400+
RewriteRule ^pipelines/1\.(16|17)/release_notes/op-release-notes?(.*)\.html$ pipelines/1.$1/release_notes/pipelines-release-notes-1-$1.html [L,R=302]
401+
402+
403+
388404
# Pipelines landing page
389405

390406
RewriteRule ^container-platform/(4\.9|4\.10|4\.11|4\.12|4\.13|4\.14|4\.15|4\.16|4\.17|4\.18)/cicd/pipelines/about-pipelines.html /pipelines/latest/about/about-pipelines.html [NE,R=302]

0 commit comments

Comments
 (0)