You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by uc...@apache.org on 2015/05/18 10:42:24 UTC

flink-web git commit: Readd .htaccess

Repository: flink-web
Updated Branches:
  refs/heads/asf-site c4ce2d7c5 -> 601788cba


Readd .htaccess


Project: http://git-wip-us.apache.org/repos/asf/flink-web/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink-web/commit/601788cb
Tree: http://git-wip-us.apache.org/repos/asf/flink-web/tree/601788cb
Diff: http://git-wip-us.apache.org/repos/asf/flink-web/diff/601788cb

Branch: refs/heads/asf-site
Commit: 601788cbadbc7804eb56679f2accc5f673d11d3f
Parents: c4ce2d7
Author: Ufuk Celebi <uc...@apache.org>
Authored: Mon May 18 10:42:19 2015 +0200
Committer: Ufuk Celebi <uc...@apache.org>
Committed: Mon May 18 10:42:19 2015 +0200

----------------------------------------------------------------------
 .htaccess         | 9 +++++++++
 content/.htaccess | 9 +++++++++
 2 files changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink-web/blob/601788cb/.htaccess
----------------------------------------------------------------------
diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..d239da5
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,9 @@
+# redirect rules to prevent old links from breaking
+RewriteEngine On
+
+RewriteRule ^/?docs/0.6-incubating/(.*) http://ci.apache.org/projects/flink/flink-docs-release-0.6/$1  [R=301,L,NE]
+RewriteRule ^/?docs/0.7-incubating/(.*) http://ci.apache.org/projects/flink/flink-docs-release-0.7/$1  [R=301,L,NE]
+RewriteRule ^/?docs/0.8/(.*) http://ci.apache.org/projects/flink/flink-docs-release-0.8/$1  [R=301,L,NE]
+RewriteRule ^/?docs/latest(/.*)? http://ci.apache.org/projects/flink/flink-docs-master$1  [R=301,L,NE]
+RewriteRule ^/?docs/stable(/.*)? http://ci.apache.org/projects/flink/flink-docs-release-0.8$1  [R=301,L,NE]
+RewriteRule ^/?docs/(.*) http://ci.apache.org/projects/flink/flink-docs-master/$1  [R=301,L,NE]

http://git-wip-us.apache.org/repos/asf/flink-web/blob/601788cb/content/.htaccess
----------------------------------------------------------------------
diff --git a/content/.htaccess b/content/.htaccess
new file mode 100644
index 0000000..d239da5
--- /dev/null
+++ b/content/.htaccess
@@ -0,0 +1,9 @@
+# redirect rules to prevent old links from breaking
+RewriteEngine On
+
+RewriteRule ^/?docs/0.6-incubating/(.*) http://ci.apache.org/projects/flink/flink-docs-release-0.6/$1  [R=301,L,NE]
+RewriteRule ^/?docs/0.7-incubating/(.*) http://ci.apache.org/projects/flink/flink-docs-release-0.7/$1  [R=301,L,NE]
+RewriteRule ^/?docs/0.8/(.*) http://ci.apache.org/projects/flink/flink-docs-release-0.8/$1  [R=301,L,NE]
+RewriteRule ^/?docs/latest(/.*)? http://ci.apache.org/projects/flink/flink-docs-master$1  [R=301,L,NE]
+RewriteRule ^/?docs/stable(/.*)? http://ci.apache.org/projects/flink/flink-docs-release-0.8$1  [R=301,L,NE]
+RewriteRule ^/?docs/(.*) http://ci.apache.org/projects/flink/flink-docs-master/$1  [R=301,L,NE]