You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2018/09/22 15:54:23 UTC

[royale-website] branch asf-site updated: trying to fix https for new Google Chrome exigences

This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/royale-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new ca31fcd  trying to fix https for new Google Chrome exigences
ca31fcd is described below

commit ca31fcdd326ad8d6143e4f742651bee33ec3e110
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Sep 22 17:54:16 2018 +0200

    trying to fix https for new Google Chrome exigences
---
 .htaccess | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..cc85075
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,11 @@
+# Redirect http to https
+
+# If we receive a forwarded http request from a proxy...
+RewriteCond %{HTTP:X-Forwarded-Proto} =http [OR]
+
+# ...or just a plain old http request directly from the client
+RewriteCond %{HTTP:X-Forwarded-Proto} =""
+RewriteCond %{HTTPS} !=on
+
+# Redirect to https version
+RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]