Create index.php for Xampp

in htdocs

create file index.php

<?php
if (!empty($_SERVER[‘HTTPS’]) && (‘on’ == $_SERVER[‘HTTPS’])) {
$uri = ‘https://’;
} else {
$uri = ‘http://’;
}
$uri .= $_SERVER[‘HTTP_HOST’];
header(‘Location: ‘.$uri.’/your site/’);
exit;
?>
Something is wrong with the XAMPP installation 🙁

(Visited 1 times, 1 visits today)
Spread the love