You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by om...@apache.org on 2017/03/07 00:58:13 UTC

orc git commit: Add redirect from http to https

Repository: orc
Updated Branches:
  refs/heads/master b72e6e82f -> cb038cb1d


Add redirect from http to https

Signed-off-by: Owen O'Malley <om...@apache.org>


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

Branch: refs/heads/master
Commit: cb038cb1db5f30459ad2a4172ca3e98fe9ce31ca
Parents: b72e6e8
Author: Owen O'Malley <om...@apache.org>
Authored: Mon Mar 6 16:57:50 2017 -0800
Committer: Owen O'Malley <om...@apache.org>
Committed: Mon Mar 6 16:57:50 2017 -0800

----------------------------------------------------------------------
 site/.htaccess | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/orc/blob/cb038cb1/site/.htaccess
----------------------------------------------------------------------
diff --git a/site/.htaccess b/site/.htaccess
index b5f98bc..0013d6e 100644
--- a/site/.htaccess
+++ b/site/.htaccess
@@ -1,3 +1,6 @@
 # .htaccess for ORC
 RedirectMatch Permanent ^/jira$ https://issues.apache.org/jira/browse/orc
 RedirectMatch Permanent ^/github$ https://github.com/apache/orc
+RewriteEngine On
+RewriteCond %{HTTPS} off
+RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]