I was bored so I installed XAMPP just for you.
XAMPP default install dir is: %ProgramFiles%\xampp\
The xampp default Apache dir is %ProgramFiles%\xampp\apache\
The xampp default Apache config is %ProgramFiles%\xampp\apache\conf\httpd.conf
The xampp default Apache config also references an additional xampp config: %ProgramFiles%\xampp\apache\conf\extras\httpd-xampp.conf
The xampp default Apache DocumentRoot is %ProgramFiles%/xampp/htdocs
Within the htdocs folder are 2 files of interest to you:
index.html & index.php
The index.html displays simply 'It works!' while the php file:
<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/xampp/');
exit;
?>As you can see, redirects your request for localhost into localhost/xampp/,
\%ProgramFiles%\xampp\htdocs\xampp\index.php
The easiest way to fix this is to just rename the htdocs\index.php to htdocs\index.php.x and your index.html will take precidence.