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