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

Commit

Permalink
redirecting navigation items to latest info (#12540)
Browse files Browse the repository at this point in the history
* redirecting navigation items to latest info

* adjust onnx redirects based on version
  • Loading branch information
aaronmarkham authored and sandeep-krishnamurthy committed Sep 15, 2018
1 parent 8209906 commit 9a5c3ff
Showing 1 changed file with 15 additions and 0 deletions.
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

0 comments on commit 9a5c3ff

Please sign in to comment.