Skip to content

Commit cb53554

Browse files
committed
RHDEVDOCS 5444 redirects for Pipelines sections
1 parent efe9f22 commit cb53554

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
@@ -237,6 +234,28 @@ AddType text/vtt vtt
237234
RewriteRule ^pipelines/?$ /pipelines/latest [R=302]
238235
RewriteRule ^pipelines/latest/?(.*)$ /pipelines/1\.11/$1 [NE,R=302]
239236

237+
238+
# redirect links to existing OCP embedded Pipelines content to standalone equivalent for each assembly
239+
# except the one recently renamed for now
240+
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]
241+
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]
242+
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]
243+
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]
244+
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]
245+
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]
246+
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]
247+
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]
248+
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]
249+
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]
250+
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]
251+
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]
252+
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]
253+
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]
254+
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]
255+
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]
256+
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]
257+
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]
258+
240259
# redirect top-level without filespec to the about file
241260
RewriteRule ^pipelines/(1\.10|1\.11)/?$ /pipelines/$1/about/understanding-openshift-pipelines.html [L,R=302]
242261

@@ -313,8 +332,8 @@ AddType text/vtt vtt
313332

314333
# 4.7 redirects
315334

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

319338
# some straight up install guide moves
320339
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)