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

set website default version to current stable (1.6) version #18738

Merged
merged 6 commits into from
Jul 23, 2020
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
6 changes: 6 additions & 0 deletions docs/static_site/src/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ RewriteOptions AllowNoSlash

</IfModule>

# Set default website version to current stable (v1.6)
RewriteCond %{REQUEST_URI} !^/versions/
RewriteCond %{HTTP_REFERER} !mxnet.apache.org
RewriteCond %{HTTP_REFERER} !mxnet.incubator.apache.org
RewriteRule ^(.*)$ /versions/1.6/$1 [r=307,L]

# TODO temporary fix for issue #18604
Redirect 302 /api/r/docs/api/R-package/build/mxnet-r-reference-manual.pdf https://mxnet-public.s3.us-east-2.amazonaws.com/docs/v1.x/mxnet-r-reference-manual.pdf
Redirect 302 /api/scala/docs/api/ /versions/1.6/api/scala/docs/api/
Expand Down