community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject [comdev-site] branch master updated: Redirect visitors from HTTP to HTTPS
Date Tue, 09 Feb 2021 08:37:18 GMT
This is an automated email from the ASF dual-hosted git repository.

bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/comdev-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 7497efe  Redirect visitors from HTTP to HTTPS
     new 2defdbe  Merge pull request #56 from ctubbsii/add-htaccess-https-redirect
7497efe is described below

commit 7497efe37eb19737a9abebb937170e12bebeef6f
Author: Christopher Tubbs <ctubbsii@apache.org>
AuthorDate: Tue Feb 9 02:16:09 2021 -0500

    Redirect visitors from HTTP to HTTPS
    
    * Add .htaccess file with a rewrite rule applied to insecure connections
      to force a redirect to HTTPS
---
 static/.htaccess | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/static/.htaccess b/static/.htaccess
new file mode 100644
index 0000000..0f1face
--- /dev/null
+++ b/static/.htaccess
@@ -0,0 +1,3 @@
+RewriteEngine On
+RewriteCond %{HTTPS} !=on
+RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]


Mime
View raw message