|
|
@@ -23,7 +23,7 @@ class RedirectToDomain
|
|
|
{
|
|
|
$current_domain = $request->SERVER['SERVER_NAME'];
|
|
|
|
|
|
- if (strtolower($current_domain != $this->target_domain)) {
|
|
|
+ if (strtolower($current_domain) != strtolower($this->target_domain)) {
|
|
|
|
|
|
if (empty($this->redirect_domains) || in_array($current_domain, $this->redirect_domains)) {
|
|
|
$redirect_url = 'https://' . $this->target_domain . $request->SERVER['REQUEST_URI'];
|