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