You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ma...@apache.org on 2020/08/04 21:09:09 UTC

[incubator-mxnet] branch master updated: fix set default website version rewrite rule for cdn (#18856)

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 <ya...@amazon.com>
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