From b28100d59552c78db6268e84f8eeefa3ed8de770 Mon Sep 17 00:00:00 2001 From: Yang Shi Date: Mon, 1 Jun 2020 21:49:22 -0700 Subject: [PATCH] redirect visitors based on geolocation - update host condition (#18457) Co-authored-by: Yang Shi --- docs/static_site/src/.htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/static_site/src/.htaccess b/docs/static_site/src/.htaccess index 7d870326ebbf..a67efcfe1fc1 100644 --- a/docs/static_site/src/.htaccess +++ b/docs/static_site/src/.htaccess @@ -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