beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@apache.org
Subject [1/3] beam-site git commit: Add .htaccess to automatically forward HTTP to HTTP
Date Thu, 29 Dec 2016 19:31:47 GMT
Repository: beam-site
Updated Branches:
  refs/heads/asf-site d9ade0584 -> 9a16fb475


Add .htaccess to automatically forward HTTP to HTTP


Project: http://git-wip-us.apache.org/repos/asf/beam-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam-site/commit/c6d0390d
Tree: http://git-wip-us.apache.org/repos/asf/beam-site/tree/c6d0390d
Diff: http://git-wip-us.apache.org/repos/asf/beam-site/diff/c6d0390d

Branch: refs/heads/asf-site
Commit: c6d0390d05e472963665f6c717110266aca01896
Parents: d9ade05
Author: Davor Bonaci <davor@google.com>
Authored: Thu Dec 29 10:11:21 2016 -0800
Committer: Davor Bonaci <davor@google.com>
Committed: Thu Dec 29 11:28:58 2016 -0800

----------------------------------------------------------------------
 src/.htaccess | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam-site/blob/c6d0390d/src/.htaccess
----------------------------------------------------------------------
diff --git a/src/.htaccess b/src/.htaccess
new file mode 100644
index 0000000..06fc74b
--- /dev/null
+++ b/src/.htaccess
@@ -0,0 +1,15 @@
+RewriteEngine On
+
+# This is a 301 (permanent) redirect from HTTP to HTTPS.
+
+# The next rule applies conditionally:
+# * the host is "beam.apache.org",
+# * the host comparison is case insensitive (NC),
+# * HTTPS is not used.
+RewriteCond %{HTTP_HOST} ^beam\.apache\.org [NC]
+RewriteCond %{HTTPS} !on
+
+# Rewrite the URL as follows:
+# * Redirect (R) permanently (301) to https://beam.apache.org/,
+# * Stop processing more rules (L).
+RewriteRule ^(.*)$ https://beam.apache.org/$1 [L,R=301]


Mime
View raw message