This is an automated email from the ASF dual-hosted git repository.
jbertram pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-website.git
The following commit(s) were added to refs/heads/main by this push:
new 41cc69a Enforce HTTPS
41cc69a is described below
commit 41cc69a625c494082de3c7c58d517bdf98bd6ffd
Author: Justin Bertram <[email protected]>
AuthorDate: Sun Apr 11 15:30:55 2021 -0500
Enforce HTTPS
---
src/.htaccess | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/.htaccess b/src/.htaccess
index 00fe145..99e6d1f 100644
--- a/src/.htaccess
+++ b/src/.htaccess
@@ -1,5 +1,7 @@
RewriteEngine On
-RewriteRule ^camel/(.*)$ http://camel.apache.org/$1 [R=301,L]
+RewriteCond %{HTTPS} !=on [NC]
+RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
+RewriteRule ^camel/(.*)$ https://camel.apache.org/$1 [R=301,L]
RewriteRule ^nms.*$ https://activemq.apache.org/components/nms/ [R=301,L]
RewriteRule ^cms.*$ https://activemq.apache.org/components/cms/ [R=301,L]
RewriteRule ^artemis/migration.html
https://activemq.apache.org/components/artemis/migration [R=301,L]