Update redirects per SEO audit; move 404 redirects to _redirects file and update to valid current URLs*

This commit is contained in:
freakwriter
2024-07-01 14:18:25 -04:00
parent 08be0e9dbb
commit e4327a6095
2 changed files with 47 additions and 37 deletions

View File

@@ -6,38 +6,9 @@
<script>
// Create an object containing all your redirects
const redirects = {
// The big key concepts split
"/getting-started/key-concepts/": "/flow-logic/",
"/getting-started/key-concepts/#expression": "/code-examples/expressions/",
"/getting-started/key-concepts/#item": "/data/data-structure/",
"/getting-started/key-concepts/#function": "/data/code/",
"/getting-started/key-concepts/#data": "/data/",
"/getting-started/key-concepts/#data-structure": "/data/data-structure/",
"/key-concepts/#data-flow": "/data/data-structure/",
"/key-concepts/#error-workflow": "/flow-logic/error-handling/error-workflows/",
"/key-concepts/#security": "/hosting/authentication/",
// Other IA redirects that seemed essential
"/getting-started/whats-next.html": "/quickstart/#whats-next",
"/getting-started/installation/advanced/server-setup.html": "/hosting/installation/server-setups/",
"/getting-started/installation/advanced/server-setup.html#server-setup": "/hosting/installation/server-setups/",
"/getting-started/installation/advanced/server-setup.html#docker-compose-example": "/hosting/installation/server-setups/docker-compose/",
"/reference/faq.html#integrations": "/integrations/#requesting-new-integrations-or-integration-features",
"/reference/faq.html": "/reference/license/",
"/reference/faq.html#license": "/reference/license/",
"/reference/faq.html#n8n-cloud": "/choose-n8n/cloud/",
"/nodes/expressions.html#expressions": "/code-examples/expressions/",
// High traffic anchor tag landing pages (if not covered by the above or by /docs/_redirects)
"/#what-is-n8n": "/",
"/getting-started/tutorials.html#blogposts": "https://n8n.io/blog/tag/tutorial/",
"/#/server-setup": "/hosting/installation/server-setups/",
"/code-examples/expressions/expressions.html": "/code-examples/expressions/",
// Editor UI split
"/editor-ui/workflows": "/workflows/",
"/editor-ui/credentials": "/credentials/",
"/editor-ui/executions": "/workflows/executions/",
"/editor-ui/admin-panel": "/hosting/updating/cloud/",
// New code node
"/hosting/configuration/#use-built-in-and-external-modules-in-function-nodes": "/hosting/configuration/#use-built-in-and-external-modules-in-the-code-node"
// Use _redirects file to set redirects
};