You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by aa...@apache.org on 2020/07/22 16:16:32 UTC
[incubator-mxnet-site] branch beta-site updated: Update .htaccess
This is an automated email from the ASF dual-hosted git repository.
aaronmarkham pushed a commit to branch beta-site
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet-site.git
The following commit(s) were added to refs/heads/beta-site by this push:
new f41b3bc Update .htaccess
new 80ce82a Merge pull request #64 from ys2843/patch-1
f41b3bc is described below
commit f41b3bccb7fd20f9ffc65b7751d95e950ebc42e8
Author: Yang Shi <ya...@amazon.com>
AuthorDate: Tue Jul 21 20:19:15 2020 -0700
Update .htaccess
Test set v1.6 as default website
---
.htaccess | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/.htaccess b/.htaccess
index 43efb81..99a7820 100644
--- a/.htaccess
+++ b/.htaccess
@@ -3,6 +3,11 @@ DirectorySlash off
RewriteEngine on
RewriteOptions AllowNoSlash
+# Set default website version to current stable (v1.6) TODO delete test code and uncomment origin code
+RewriteCond %{REQUEST_URI} !^/versions/
+RewriteCond %{HTTP_REFERER} !mxnet-beta.staged.apache.org
+Rewriterule ^(.*)$ /versions/1.6/$1 [r=307,L]
+
# Show file instead of folder for example /api/docs/tutorials.html
# instead of /api/docs/tutorials/
RewriteCond %{REQUEST_FILENAME} -d