From 049b0aaa2b2375fa18eb6af30a852772ffa6c274 Mon Sep 17 00:00:00 2001 From: Yang Shi Date: Sun, 19 Jul 2020 16:43:58 -0700 Subject: [PATCH] enable first time redirect on all master website pages --- docs/static_site/src/.htaccess | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/static_site/src/.htaccess b/docs/static_site/src/.htaccess index 40531bf4e44f..813cd17a19ca 100644 --- a/docs/static_site/src/.htaccess +++ b/docs/static_site/src/.htaccess @@ -24,11 +24,11 @@ RewriteOptions AllowNoSlash # 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 %{REQUEST_URI} !^/versions/ 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] +# 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