You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2020/02/24 14:42:19 UTC

[plc4x] branch develop updated: - Added a .htaccess file to forward all traffic to https (hope this works)

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

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new d1b1f88  - Added a .htaccess file to forward all traffic to https (hope this works)
d1b1f88 is described below

commit d1b1f8855a98461a6412ed3043446666b934dbd6
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Mon Feb 24 15:42:11 2020 +0100

    - Added a .htaccess file to forward all traffic to https (hope this works)
---
 src/site/resources/.htaccess | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/site/resources/.htaccess b/src/site/resources/.htaccess
new file mode 100644
index 0000000..01d5192
--- /dev/null
+++ b/src/site/resources/.htaccess
@@ -0,0 +1,3 @@
+RewriteEngine On
+RewriteCond %{HTTPS} !=on
+RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
\ No newline at end of file