Skip to content

Commit

Permalink
redirect visitors based on geolocation - update host condition (apach…
Browse files Browse the repository at this point in the history
…e#18457)

Co-authored-by: Yang Shi <[email protected]>
  • Loading branch information
Yang Shi and ys2843 committed Jun 2, 2020
1 parent 4732a05 commit a5eb7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/static_site/src/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RewriteOptions AllowNoSlash

# Redirect Chinese visitors to Chinese CDN, temporary solution for slow site speed in China
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CN$
RewriteCond %{HTTP_HOST} mxnet.apache.org
RewriteCond %{HTTP_HOST} !cdn
RewriteRule ^(.*) https://mxnet.cdn.apache.org%{REQUEST_URI} [R,NC,L]

# Show file instead of folder for example /api/docs/tutorials.html
Expand Down

0 comments on commit a5eb7db

Please sign in to comment.