- Code: Select all
<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/xampp/');
exit;
?>
Something is wrong with the XAMPP installation :-(
And here is mine...
- Code: Select all
<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/forum/');
exit;
?>
Something is wrong with the XAMPP installation :-(
Now, I have a folder in my htdocs folder, called forum. When I add that, it will not go toward that folder, infact all it does is send me directly to the localhost link.
Anyone wanna help me with this one?
Edit: Made a mistake on my code.