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

Commit

Permalink
set website default version - test redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
ys2843 committed Jul 19, 2020
1 parent 146b49e commit 5cd97c2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/static_site/src/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ RewriteOptions AllowNoSlash

</IfModule>

# Set default website version to current stable (v1.6) TODO delete test code and uncomment origin code
RewriteCond %{REQUEST_URI} ^/versions/1.1.0/community/contribute.html$
# RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{HTTP_REFERER} !mxnet.apache.org
RewriteCond %{HTTP_REFERER} !mxnet.incubator.apache.org
Rewriterule ^(.*)$ /versions/1.6/community/contribute.html [r=307,L]
# Rewriterule ^(.*)$ /versions/1.6/ [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

0 comments on commit 5cd97c2

Please sign in to comment.