Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
set v1.7 as default website version (#19120)
Browse files Browse the repository at this point in the history
  • Loading branch information
ys2843 authored Sep 12, 2020
1 parent 1f15819 commit 3240e1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/static_site/src/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ RewriteOptions AllowNoSlash

</IfModule>

# Set default website version to old stable (v1.6)
# Set default website version to old stable (v1.7)
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]
RewriteRule ^(.*)$ /versions/1.7/$1 [r=307,L]

# Redirect Chinese visitors to Chinese CDN, temporary solution for slow site speed in China
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CN$
Expand Down

0 comments on commit 3240e1e

Please sign in to comment.