fixed redir
This commit is contained in:
parent
1bd56359d6
commit
a1121becbf
@ -21,7 +21,7 @@ if (isset($_REQUEST['__url']) && $_REQUEST['__url'] == 'index.php') {
|
||||
}
|
||||
|
||||
if (preg_match('/^www\..*$/',$_SERVER['HTTP_HOST'])) {
|
||||
header('Location: http://'.str_replace('www.',$_SERVER['HTTP_HOST']).$_SERVER['REQUEST_URI']);
|
||||
header('Location: http://'.str_replace('www.','',$_SERVER['HTTP_HOST']).$_SERVER['REQUEST_URI']);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user