What does this mean, " Something is wrong with the XAMPP installation :-("?

Viewed 4924

I found it in my xampp/htdocs/index.php. How can it be resolved?

<?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 :-(

Note: My XAMMP installation can run my local WordPress install.

1 Answers

Try running localhost/filename.php Instead of running file with given address like c:/xampp/htdocs/filename.php Hope it resolves the issue.

Related