From 923e3ed82dd8efac886f8ef96f8a63548bdeced1 Mon Sep 17 00:00:00 2001 From: Herman van Rink Date: Thu, 14 Jun 2018 20:58:08 +0200 Subject: [PATCH] Issue #2567173 by helmo: docs, change to the selected alias ... to match hosting_https --- http/Provision/Config/Apache/vhost.tpl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http/Provision/Config/Apache/vhost.tpl.php b/http/Provision/Config/Apache/vhost.tpl.php index 6ffe3251..73b48192 100644 --- a/http/Provision/Config/Apache/vhost.tpl.php +++ b/http/Provision/Config/Apache/vhost.tpl.php @@ -45,11 +45,11 @@ if ($this->redirection || $ssl_redirection) { print " RewriteRule ^/*(.*)$ https://%{HTTP_HOST}/$1 [NE,L,R=301]\n"; } elseif ($ssl_redirection && $this->redirection) { - print " # Redirect all aliases + main uri to the main https uri.\n"; + print " # Redirect all aliases + main uri to the selected alias https uri.\n"; print " RewriteRule ^/*(.*)$ https://{$this->redirection}/$1 [NE,L,R=301]\n"; } elseif (!$ssl_redirection && $this->redirection) { - print " # Redirect all aliases to the main http url.\n"; + print " # Redirect all aliases to the selected alias.\n"; print " RewriteCond %{HTTP_HOST} !^{$this->redirection}$ [NC]\n"; print " RewriteRule ^/*(.*)$ http://{$this->redirection}/$1 [NE,L,R=301]\n"; } -- GitLab