Skip to content

Commit

Permalink
set website default version to current stable (1.6) version (apache#1…
Browse files Browse the repository at this point in the history
…8738)

* set website default version - test redirect

* enable first time redirect on all master website pages

* update test code

* remove unnecessary test code

* fix typo

* delete test code
  • Loading branch information
ys2843 committed Jul 23, 2020
1 parent 02ae456 commit e31ad77
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit e31ad77

Please sign in to comment.