I installed XAMPP 3.2.2 for Windows. My OS is v8.1.
First I had the problem with the ports, but I changed them and I can see that Apache and MySQL are working from the XAMPP control panel.
The thing is that when I go to http://localhost/ or http://127.0.0.1/,
is displayed, and when I drag and drop index.php to Chrome I get the following:HTTP Error 404. The requested resource is not found.
- Code: Select all
<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/dashboard/');
exit;
?>
Something is wrong with the XAMPP installation :-(
I have already tried uninstalling and installing again XAMPP with not luck. I wish someone can help me.