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
2 people authored and yijunc committed Jun 9, 2020
1 parent 5d23a5f commit b28100d
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 b28100d

Please sign in to comment.