You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by mo...@apache.org on 2016/06/08 20:24:41 UTC

incubator-zeppelin git commit: [ZEPPELIN-955] Redirect docs/0.6.0-incubating-SNAPSHOT to docs/0.6.0-SNAPSHOT/

Repository: incubator-zeppelin
Updated Branches:
  refs/heads/gh-pages d5712727a -> ab37941a3


[ZEPPELIN-955] Redirect docs/0.6.0-incubating-SNAPSHOT to docs/0.6.0-SNAPSHOT/

### What is this PR for?
Redirect docs/0.6.0-incubating-SNAPSHOT to docs/0.6.0-SNAPSHOT/

### What type of PR is it?
Improvement

### Todos
* [x] - Create .htaccess with rewirte rule

### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-955

### How should this be tested?

### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? no
* Does this needs documentation? no

Author: Lee moon soo <mo...@apache.org>

Closes #961 from Leemoonsoo/gh-pages-ZEPPELIN-955 and squashes the following commits:

865a9fb [Lee moon soo] Update rewrite rule
848eb68 [Lee moon soo] Redirect docs/0.6.0-incubating-SNAPSHOT/* to docs/0.6.0-SNAPSHOT/


Project: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/commit/ab37941a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/tree/ab37941a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/diff/ab37941a

Branch: refs/heads/gh-pages
Commit: ab37941a3cc907230e5c217a4f1f64a4632a865b
Parents: d571272
Author: Lee moon soo <mo...@apache.org>
Authored: Sun Jun 5 12:58:24 2016 -0700
Committer: Lee moon soo <mo...@apache.org>
Committed: Wed Jun 8 13:26:07 2016 -0700

----------------------------------------------------------------------
 .htaccess | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/blob/ab37941a/.htaccess
----------------------------------------------------------------------
diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..ffb8072
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,10 @@
+RewriteEngine On
+
+# redirect 0.6.0-xxxx to 0.6.0-SNAPSHOT
+RewriteRule ^/?docs/0.6.0(?!-SNAPSHOT).*/(.*) /docs/0.6.0-SNAPSHOT/$2  [R=301,L,NE]
+
+# redirect 0.5.[056]-xxxx to 0.5.[056]-incubating
+RewriteRule ^/?docs/(0.5.[056])(?!-incubating).*/(.*) /docs/$1-incubating/$3  [R=301,L,NE]
+
+# rewrite docs/latest to latest stable release
+RewriteRule ^/?docs/latest/(.*) /docs/0.5.6-incubating/$1  [PT]