From commits-return-3555-archive-asf-public=cust-asf.ponee.io@polygene.apache.org Tue Sep 11 02:25:33 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 695AA180656 for ; Tue, 11 Sep 2018 02:25:33 +0200 (CEST) Received: (qmail 31256 invoked by uid 500); 11 Sep 2018 00:25:32 -0000 Mailing-List: contact commits-help@polygene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@polygene.apache.org Delivered-To: mailing list commits@polygene.apache.org Received: (qmail 31247 invoked by uid 99); 11 Sep 2018 00:25:32 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2018 00:25:32 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 44D7BDFCB9; Tue, 11 Sep 2018 00:25:32 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: niclas@apache.org To: commits@polygene.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: polygene-website git commit: Put the working redirect in src/ as well Date: Tue, 11 Sep 2018 00:25:32 +0000 (UTC) Repository: polygene-website Updated Branches: refs/heads/asf-site 49a595963 -> 71a12d481 Put the working redirect in src/ as well Project: http://git-wip-us.apache.org/repos/asf/polygene-website/repo Commit: http://git-wip-us.apache.org/repos/asf/polygene-website/commit/71a12d48 Tree: http://git-wip-us.apache.org/repos/asf/polygene-website/tree/71a12d48 Diff: http://git-wip-us.apache.org/repos/asf/polygene-website/diff/71a12d48 Branch: refs/heads/asf-site Commit: 71a12d48105931c6ec63ed6eacf17105335053e4 Parents: 49a5959 Author: niclas Authored: Tue Sep 11 08:25:20 2018 +0800 Committer: niclas Committed: Tue Sep 11 08:25:20 2018 +0800 ---------------------------------------------------------------------- src/htaccess | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/polygene-website/blob/71a12d48/src/htaccess ---------------------------------------------------------------------- diff --git a/src/htaccess b/src/htaccess index 9bf6601..903c5ac 100644 --- a/src/htaccess +++ b/src/htaccess @@ -2,7 +2,10 @@ layout: none permalink: .htaccess --- -Redirect / https://polygene.apache.org/ +RewriteEngine On +RewriteCond %{HTTPS} !=on +RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] + Redirect 301 /content/ / Redirect 301 /1.0/ /java/1.0/ Redirect 301 /1.2/ /java/1.2/