Skip to content

Commit 101288b

Browse files
authored
Merge pull request #65087 from mramendi/pipelines-redirects
RHDEVDOCS 5444 redirects for Pipelines sections
2 parents feea258 + cb53554 commit 101288b

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

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

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,7 @@ AddType text/vtt vtt
148148
#redirect for 4.0 Manage vulneribility page
149149
RewriteRule ^(acs/(?:4\.0/)?)?operating/manage-vulnerabilities\.html$ /acs/4.0/operating/manage-vulnerabilities/vulnerability-management.html [NE,R=301]
150150

151-
# this pipeline redirect has to come before the latest kicks in generically
152-
RewriteRule ^container-platform/latest/pipelines/creating-applications-with-cicd-pipelines.html /container-platform/4.7/cicd/pipelines/creating-applications-with-cicd-pipelines.html [NE,R=301]
153-
154-
# remove aro docs to just the welcome page
151+
# remove aro docs to just the welcome page
155152
RewriteRule aro/4/(?!welcome)(.*)?$ /container-platform/latest/$1 [L,R=301]
156153

157154
# Redirects for "latest" version
@@ -246,6 +243,28 @@ AddType text/vtt vtt
246243
RewriteRule ^pipelines/?$ /pipelines/latest [R=302]
247244
RewriteRule ^pipelines/latest/?(.*)$ /pipelines/1\.11/$1 [NE,R=302]
248245

246+
247+
# redirect links to existing OCP embedded Pipelines content to standalone equivalent for each assembly
248+
# except the one recently renamed for now
249+
RewriteRule ^container-platform/(4\.10|4\.11|4\.12|4\.13)/cicd/pipelines/op-release-notes.html /pipelines/latest/about/op-release-notes.html [L,R=302]
250+
RewriteRule ^container-platform/(4\.10|4\.11|4\.12|4\.13)/cicd/pipelines/understanding-openshift-pipelines.html /pipelines/latest/about/understanding-openshift-pipelines.html [L,R=302]
251+
RewriteRule ^container-platform/(4\.10|4\.11|4\.12|4\.13)/cicd/pipelines/installing-pipelines.html /pipelines/latest/install_config/installing-pipelines.html [L,R=302]
252+
RewriteRule ^container-platform/(4\.10|4\.11|4\.12|4\.13)/cicd/pipelines/creating-applications-with-cicd-pipelines.html /pipelines/latest/create/creating-applications-with-cicd-pipelines.html [L,R=302]
253+
RewriteRule ^container-platform/(4\.10|4\.11|4\.12|4\.13)/cicd/pipelines/customizing-configurations-in-the-tektonconfig-cr.html /pipelines/latest/install_config/customizing-configurations-in-the-tektonconfig-cr.html [L,R=302]
254+
RewriteRule ^container-platform/(4\.10|4\.11|4\.12|4\.13)/cicd/pipelines/managing-nonversioned-and-versioned-cluster-tasks.html /pipelines/latest/create/managing-nonversioned-and-versioned-cluster-tasks.html [L,R=302]
255+
RewriteRule ^container-platform/(4\.10|4\.11|4\.12|4\.13)/cicd/pipelines/using-tekton-hub-with-openshift-pipelines.html /pipelines/latest/hub/using-tekton-hub-with-openshift-pipelines.html [L,R=302]
256+
RewriteRule ^container-platform/(4\.10|4\.11|4\.12|4\.13)/cicd/pipelines/remote-pipelines-tasks-resolvers.html /pipelines/latest/create/remote-pipelines-tasks-resolvers.html [L,R=302]
257+
RewriteRule ^container-platform/(4\.10|4\.11|4\.12|4\.13)/cicd/pipelines/using-pipelines-as-code.html /pipelines/latest/pac/about-pipelines-as-code.html [L,R=302]
258+
RewriteRule ^container-platform/(4\.10|4\.11|4\.12|4\.13)/cicd/pipelines/working-with-pipelines-web-console.html /pipelines/latest/create/working-with-pipelines-web-console.html [L,R=302]
259+
RewriteRule ^container-platform/(4\.10|4\.11|4\.12|4\.13)/cicd/pipelines/reducing-pipelines-resource-consumption.html /pipelines/latest/resource/reducing-pipelines-resource-consumption.html [L,R=302]
260+
RewriteRule ^container-platform/(4\.10|4\.11|4\.12|4\.13)/cicd/pipelines/setting-compute-resource-quota-for-openshift-pipelines.html /pipelines/latest/resource/setting-compute-resource-quota-for-openshift-pipelines.html [L,R=302]
261+
RewriteRule ^container-platform/(4\.10|4\.11|4\.12|4\.13)/cicd/pipelines/using-pods-in-a-privileged-security-context.html /pipelines/1\.11/secure/using-pods-in-a-privileged-security-context.html [L,R=302]
262+
RewriteRule ^container-platform/(4\.10|4\.11|4\.12|4\.13)/cicd/pipelines/authenticating-pipelines-using-git-secret.html /pipelines/latest/secure/authenticating-pipelines-using-git-secret.html [L,R=302]
263+
RewriteRule ^container-platform/(4\.10|4\.11|4\.12|4\.13)/cicd/pipelines/using-tekton-chains-for-openshift-pipelines-supply-chain-security.html /pipelines/latest/secure/using-tekton-chains-for-openshift-pipelines-supply-chain-security.html [L,R=302]
264+
RewriteRule ^container-platform/(4\.10|4\.11|4\.12|4\.13)/cicd/pipelines/viewing-pipeline-logs-using-the-openshift-logging-operator.html /pipelines/latest/records/viewing-pipeline-logs-using-the-openshift-logging-operator.html [L,R=302]
265+
RewriteRule ^container-platform/(4\.10|4\.11|4\.12|4\.13)/cicd/pipelines/unprivileged-building-of-container-images-using-buildah.html /pipelines/latest/secure/unprivileged-building-of-container-images-using-buildah.html [L,R=302]
266+
RewriteRule ^container-platform/(4\.10|4\.11|4\.12|4\.13)/cicd/pipelines/securing-webhooks-with-event-listeners.html /pipelines/latest/secure/securing-webhooks-with-event-listeners.html [L,R=302]
267+
249268
# redirect top-level without filespec to the about file
250269
RewriteRule ^pipelines/(1\.10|1\.11)/?$ /pipelines/$1/about/understanding-openshift-pipelines.html [L,R=302]
251270

@@ -322,8 +341,8 @@ AddType text/vtt vtt
322341

323342
# 4.7 redirects
324343

325-
# builds and pipelines books moved to be under the cicd table from 4.7
326-
RewriteRule ^container-platform/4\.7/(builds|pipelines)/?(.*)$ /container-platform/4.7/cicd/$1/$2 [NE,R=301]
344+
# builds books moved to be under the cicd table from 4.7
345+
RewriteRule ^container-platform/4\.7/(builds)/?(.*)$ /container-platform/4.7/cicd/$1/$2 [NE,R=301]
327346

328347
# some straight up install guide moves
329348
RewriteRule ^container-platform/4\.7/installing/install_config/installation-types.html /container-platform/4.7/installing/installing-preparing.html#supported-installation-methods-for-different-platforms [NE,R=301]

0 commit comments

Comments
 (0)