Commit 72f09e4b authored by mig5's avatar mig5 Committed by mig5

#940816 - we don't need to depend on Aliases for SSL redirection. Presence of...

#940816 - we don't need to depend on Aliases for SSL redirection. Presence of alias redirection already implies aliases so doesn't need to be in the wider alias conditional
parent 7afbd0ce
......@@ -23,8 +23,9 @@
<?php
if (sizeof($this->aliases)) {
print "\n ServerAlias " . implode("\n ServerAlias ", $this->aliases) . "\n";
}
if ($this->redirection || $ssl_redirection) {
if ($this->redirection || $ssl_redirection) {
print " RewriteEngine on\n";
if ($ssl_redirection && !$this->redirection) {
......@@ -40,7 +41,6 @@ if (sizeof($this->aliases)) {
print " RewriteCond %{HTTP_HOST} !^{$this->uri}$ [NC]\n";
print " RewriteRule ^/*(.*)$ http://{$this->uri}/$1 [L,R=301]\n";
}
}
}
?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment