This is an automated email from the ASF dual-hosted git repository. rgielen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/struts-site.git
The following commit(s) were added to refs/heads/master by this push: new b2831f4 establish https rewrite as recommended by Niklas Hedman b2831f4 is described below commit b2831f4a10d6311800185550d0d8043558ff950d Author: Rene Gielen <rene.gie...@gmail.com> AuthorDate: Wed Sep 12 10:16:46 2018 +0200 establish https rewrite as recommended by Niklas Hedman --- source/.htaccess | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/.htaccess b/source/.htaccess index 9e224da..1be2f2e 100644 --- a/source/.htaccess +++ b/source/.htaccess @@ -1,6 +1,10 @@ # This file is maintained at https://gitbox.apache.org/repos/asf?p=struts-site.git DirectoryIndex index.html +RewriteEngine On +RewriteCond %{HTTPS} !=on +RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] + RedirectMatch \/docs\/version\-notes\-25([0-9]{1,2})+\.html https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.$1 RedirectMatch \/docs\/version\-notes\-23([0-9]{1,2})+\.html https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.3.$1 RedirectMatch \/docs\/version\-notes\-22([0-9]{1,2})+\.html https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.2.$1