Fixed URL assembly
This commit is contained in:
parent
cab76fa0b4
commit
f707f6084e
1 changed files with 3 additions and 3 deletions
|
@ -28,12 +28,12 @@ class Redirect
|
||||||
|| $_SERVER['HTTPS'] == 'off'
|
|| $_SERVER['HTTPS'] == 'off'
|
||||||
|| $_SERVER['HTTPS'] == ''
|
|| $_SERVER['HTTPS'] == ''
|
||||||
) {
|
) {
|
||||||
$destination = 'http';
|
$protocol = 'http';
|
||||||
} else {
|
} else {
|
||||||
$destination = 'https';
|
$protocol = 'https';
|
||||||
}
|
}
|
||||||
|
|
||||||
$destination .= '://' . $_SERVER['HTTP_HOST'] . $destination;
|
$destination = $protocol . '://' . $_SERVER['HTTP_HOST'] . $destination;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($permanent) {
|
if ($permanent) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue