Commit 807f0763 authored by helmo's avatar helmo

Revert "fix redirection for non-ssl hosts, issue #2148671 by logaritmisk"

This reverts commit abc9ac9c.
parent f46e05fd
......@@ -41,8 +41,8 @@ if ($this->redirection || $ssl_redirection) {
}
elseif (!$ssl_redirection && $this->redirection) {
// Redirect all aliases to the main http url.
print " RewriteCond %{HTTP_HOST} !^{$this->uri}$ [NC]\n";
print " RewriteRule ^/*(.*)$ http://{$this->uri}/$1 [NE,L,R=301]\n";
print " RewriteCond %{HTTP_HOST} !^{$this->redirection}$ [NC]\n";
print " RewriteRule ^/*(.*)$ http://{$this->redirection}/$1 [NE,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