Skip to content

Commit 3ad8446

Browse files
author
Till Brehm
committed
Fixed Issue 3944: Rewrite HTTP to HTTPS does not work without SEO Redirect
1 parent 7f16fe3 commit 3ad8446

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

server/conf/vhost.conf.master

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@
396396
<tmpl_if name="rewrite_enabled">
397397
RewriteEngine on
398398
<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
399-
RewriteEngine on
400399
RewriteCond %{REQUEST_URI} ^/\.well-known/acme-challenge/
401400
RewriteRule ^ - [END]
402401
</tmpl_if>

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ function update($event_name, $data) {
14941494

14951495
if (count($rewrite_wildcard_rules) > 0) $rewrite_rules = array_merge($rewrite_rules, $rewrite_wildcard_rules); // Append wildcard rules to the end of rules
14961496

1497-
if(count($rewrite_rules) > 0 || $vhost_data['seo_redirect_enabled'] > 0 || count($alias_seo_redirects) > 0) {
1497+
if(count($rewrite_rules) > 0 || $vhost_data['seo_redirect_enabled'] > 0 || count($alias_seo_redirects) > 0 || $data['new']['rewrite_to_https'] == 'y') {
14981498
$tpl->setVar('rewrite_enabled', 1);
14991499
} else {
15001500
$tpl->setVar('rewrite_enabled', 0);

0 commit comments

Comments
 (0)