Skip to content

Commit

Permalink
fix set default website version rewrite rule for cdn (apache#18856)
Browse files Browse the repository at this point in the history
  • Loading branch information
ys2843 committed Aug 4, 2020
1 parent 7a40219 commit b8eccc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/static_site/src/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b8eccc8

Please sign in to comment.