diff --git a/site.redirects.js b/site.redirects.js index 238e06be7..b9cd38e7b 100644 --- a/site.redirects.js +++ b/site.redirects.js @@ -597,34 +597,34 @@ const siteRedirects = { }, // Legacy REST API redirects - { - to: '/developers/weaviate/api/rest/', - from: [ - '/developers/weaviate/api/rest/schema', - '/developers/weaviate/api/rest/objects', - '/developers/weaviate/api/rest/batch', - '/developers/weaviate/api/rest/backups', - '/developers/weaviate/api/rest/classification', - '/developers/weaviate/api/rest/meta', - '/developers/weaviate/api/rest/nodes', - '/developers/weaviate/api/rest/well-known', - '/developers/weaviate/api/rest_legacy/schema', - '/developers/weaviate/api/rest_legacy/objects', - '/developers/weaviate/api/rest_legacy/batch', - '/developers/weaviate/api/rest_legacy/backups', - '/developers/weaviate/api/rest_legacy/classification', - '/developers/weaviate/api/rest_legacy/meta', - '/developers/weaviate/api/rest_legacy/nodes', - '/developers/weaviate/api/rest_legacy/well-known', - ] - }, - { - to: '/developers/weaviate/model-providers', - from: [ - '/developers/weaviate/api/rest/modules', - '/developers/weaviate/api/rest_legacy/modules', - ] - }, + // { + // to: '/developers/weaviate/api/rest/', + // from: [ + // '/developers/weaviate/api/rest/schema', + // '/developers/weaviate/api/rest/objects', + // '/developers/weaviate/api/rest/batch', + // '/developers/weaviate/api/rest/backups', + // '/developers/weaviate/api/rest/classification', + // '/developers/weaviate/api/rest/meta', + // '/developers/weaviate/api/rest/nodes', + // '/developers/weaviate/api/rest/well-known', + // '/developers/weaviate/api/rest_legacy/schema', + // '/developers/weaviate/api/rest_legacy/objects', + // '/developers/weaviate/api/rest_legacy/batch', + // '/developers/weaviate/api/rest_legacy/backups', + // '/developers/weaviate/api/rest_legacy/classification', + // '/developers/weaviate/api/rest_legacy/meta', + // '/developers/weaviate/api/rest_legacy/nodes', + // '/developers/weaviate/api/rest_legacy/well-known', + // ] + // }, + // { + // to: '/developers/weaviate/model-providers', + // from: [ + // '/developers/weaviate/api/rest/modules', + // '/developers/weaviate/api/rest_legacy/modules', + // ] + // }, // Products to Pricing redirects @@ -793,14 +793,14 @@ const siteRedirects = { ), ]; } - if (existingPath.includes('/weaviate/api/rest')) { - return [ - existingPath.replace( - '/weaviate/api/rest', - '/weaviate/current/restful-api-references' - ), - ]; - } + // if (existingPath.includes('/weaviate/api/rest')) { + // return [ + // existingPath.replace( + // '/weaviate/api/rest', + // '/weaviate/current/restful-api-references' + // ), + // ]; + // } if ( existingPath.includes('/weaviate/concepts/replication-architecture') diff --git a/static/netlify.toml b/static/netlify.toml index 28b6c21bd..3012c3fad 100644 --- a/static/netlify.toml +++ b/static/netlify.toml @@ -26,4 +26,25 @@ to = "/developers/weaviate/quickstart/:splat" [[redirects]] from = "/weaviate/current/getting-started" -to = "/weaviate/quickstart/:splat" \ No newline at end of file +to = "/weaviate/quickstart/:splat" + +###==================== REST API ==================== + +[[redirects]] +from = [ + "/developers/weaviate/api/rest/modules", + "/developers/weaviate/api/rest_legacy/modules" +] +to = "/developers/weaviate/model-providers" + +[[redirects]] +from = [ + "/developers/weaviate/api/rest/*", + "/developers/weaviate/api/rest_legacy/*" +] +to = "/developers/weaviate/api/rest/:splat" + +[[redirects]] +from = "/weaviate/current/restful-api-references/*" +to = "/developers/weaviate/api/rest/" +