diff --git a/netlify.toml b/netlify.toml index b6048dc24ee1ddadde4e5fd56f8077606a7b4200..b3050d4ec0e6872c02618e8224c57fc671426a66 100644 --- a/netlify.toml +++ b/netlify.toml @@ -30,4 +30,28 @@ command = "npm run production && hugo --gc --minify -b $DEPLOY_PRIME_URL" HUGO_VERSION = "0.76.5" [context.next.environment] -HUGO_ENABLEGITINFO = "true" \ No newline at end of file +HUGO_ENABLEGITINFO = "true" + +[[redirects]] + from = "/xmlns/*" + to = "https://docs.osgi.org/xmlns/:splat" + status = 301 + force = true #COMMENT: ensure that we always redirect + +[[redirects]] + from = "/javadoc/*" + to = "https://docs.osgi.org/javadoc/:splat" + status = 301 + force = true #COMMENT: ensure that we always redirect + +[[redirects]] + from = "/specification/*" + to = "https://docs.osgi.org/specification/:splat" + status = 301 + force = true #COMMENT: ensure that we always redirect + +[[redirects]] + from = "/download/*" + to = "https://docs.osgi.org/download/:splat" + status = 301 + force = true #COMMENT: ensure that we always redirect