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

lukaszlenart 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 a2bf012  Excludes /dtds from https rewrite
a2bf012 is described below

commit a2bf01254ce5c369878dc4f622200d7584f622f1
Author: Lukasz Lenart <lukaszlen...@apache.org>
AuthorDate: Wed Sep 12 16:35:06 2018 +0200

    Excludes /dtds from https rewrite
---
 source/.htaccess | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/source/.htaccess b/source/.htaccess
index 1be2f2e..098a831 100644
--- a/source/.htaccess
+++ b/source/.htaccess
@@ -2,8 +2,9 @@
 DirectoryIndex index.html
 
 RewriteEngine On
-RewriteCond %{HTTPS} !=on
-RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
+RewriteCond %{HTTPS} off
+RewriteCond %{REQUEST_URI} !^/dtds/? [NC]
+RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [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

Reply via email to