Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

redirecting navigation items to latest info #12540

Merged
merged 3 commits into from
Sep 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/build_version_doc/artifacts/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ 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]

# 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]
RewriteRule ^versions/1.0.0/api/clojure/.*$ /error/api.html [R=301,L]
Expand Down