Question about index.php
Posted: 14. October 2006 05:07
I have used XAMPP before, but never had this problem. The problem is, that my index.php will not redirect users to the folder I would like. Here is the orignal code...
And here is mine...
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.
- 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.