Skip to content

Commit 11e523d

Browse files
Giovanni Pires da SilvaLeoColomb
Giovanni Pires da Silva
authored andcommitted
Change the rule of forcing https to keep up the request uri
1 parent 9a9ae86 commit 11e523d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/.htaccess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ AddDefaultCharset utf-8
348348
# <IfModule mod_rewrite.c>
349349
# RewriteEngine On
350350
# RewriteCond %{HTTPS} !=on
351-
# RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
351+
# RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
352352
# </IfModule>
353353

354354
# ----------------------------------------------------------------------

src/rewrites/rewrite_http_to_https.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
<IfModule mod_rewrite.c>
99
RewriteEngine On
1010
RewriteCond %{HTTPS} !=on
11-
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
11+
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
1212
</IfModule>

0 commit comments

Comments
 (0)