This is an automated email from the ASF dual-hosted git repository.

marcoabreu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new b8eccc8  fix set default website version rewrite rule for cdn (#18856)
b8eccc8 is described below

commit b8eccc86754f39ba8acaee92eeec04637e61e261
Author: Yang Shi <[email protected]>
AuthorDate: Tue Aug 4 14:08:09 2020 -0700

    fix set default website version rewrite rule for cdn (#18856)
---
 docs/static_site/src/.htaccess | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docs/static_site/src/.htaccess b/docs/static_site/src/.htaccess
index d8467ab..679b613 100644
--- a/docs/static_site/src/.htaccess
+++ b/docs/static_site/src/.htaccess
@@ -26,6 +26,7 @@ RewriteOptions AllowNoSlash
 RewriteCond %{REQUEST_URI} !^/versions/
 RewriteCond %{HTTP_REFERER} !mxnet.apache.org
 RewriteCond %{HTTP_REFERER} !mxnet.incubator.apache.org
+RewriteCond %{HTTP_REFERER} !mxnet.cdn.apache.org
 RewriteRule ^(.*)$ /versions/1.6/$1 [r=307,L]
 
 # Redirect Chinese visitors to Chinese CDN, temporary solution for slow site 
speed in China

Reply via email to