From b465f59460c71c553f42b80b7144cf776b52e356 Mon Sep 17 00:00:00 2001 From: Aaron Markham Date: Wed, 12 Sep 2018 15:45:54 -0700 Subject: [PATCH 1/2] redirecting navigation items to latest info --- docs/build_version_doc/artifacts/.htaccess | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/build_version_doc/artifacts/.htaccess b/docs/build_version_doc/artifacts/.htaccess index 5467448f521a..ead47bd604ec 100644 --- a/docs/build_version_doc/artifacts/.htaccess +++ b/docs/build_version_doc/artifacts/.htaccess @@ -4,3 +4,12 @@ RewriteRule ^get_started.*$ /install/ [R=301,L] RewriteRule ^how_to.*$ /faq/ [R=301,L] RewriteRule ^api/python/symbol.html$ /api/python/symbol/symbol.html [R=301,L] RewriteRule ^community/index.html$ /community/contribute.html [R=301,L] + +# Navigation bar redirects to latest info +RewriteRule ^versions/[^\/]+/architecture/.*$ /architecture/ [R=301,L] +RewriteRule ^versions/[^\/]+/community/.*$ /community/ [R=301,L] +RewriteRule ^versions/[^\/]+/faq/.*$ /faq/ [R=301,L] +RewriteRule ^versions/[^\/]+/gluon/.*$ /gluon/ [R=301,L] +RewriteRule ^versions/[^\/]+/install/.*$ /install/ [R=301,L] +RewriteRule ^versions/[^\/]+/tutorials/.*$ /tutorials/ [R=301,L] +RewriteRule ^versions/[^\/]+/api/python/contrib/onnx.html /api/python/contrib/onnx.html [R=301,L] From e4feb0e437dfe8d7cacaa4878c4758af7eea90f1 Mon Sep 17 00:00:00 2001 From: Aaron Markham Date: Fri, 14 Sep 2018 17:27:48 -0700 Subject: [PATCH 2/2] adjust onnx redirects based on version --- docs/build_version_doc/artifacts/.htaccess | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/build_version_doc/artifacts/.htaccess b/docs/build_version_doc/artifacts/.htaccess index dff3d7c2bd45..95b311a94649 100644 --- a/docs/build_version_doc/artifacts/.htaccess +++ b/docs/build_version_doc/artifacts/.htaccess @@ -12,7 +12,12 @@ RewriteRule ^versions/[^\/]+/faq/.*$ /faq/ [R=301,L] RewriteRule ^versions/[^\/]+/gluon/.*$ /gluon/ [R=301,L] RewriteRule ^versions/[^\/]+/install/.*$ /install/ [R=301,L] RewriteRule ^versions/[^\/]+/tutorials/.*$ /tutorials/ [R=301,L] -RewriteRule ^versions/[^\/]+/api/python/contrib/onnx.html /api/python/contrib/onnx.html [R=301,L] + +# Redirect navbar APIs that did not exist +RewriteRule ^versions/0.11.0/api/python/contrib/onnx.html /error/api.html [R=301,L] +RewriteRule ^versions/0.12.1/api/python/contrib/onnx.html /error/api.html [R=301,L] +RewriteRule ^versions/1.0.0/api/python/contrib/onnx.html /error/api.html [R=301,L] +RewriteRule ^versions/1.1.0/api/python/contrib/onnx.html /error/api.html [R=301,L] RewriteRule ^versions/0.11.0/api/clojure/.*$ /error/api.html [R=301,L] RewriteRule ^versions/0.12.1/api/clojure/.*$ /error/api.html [R=301,L]