Categories
🏴‍☠️

Create index.php for Xampp

in htdocs create file index.php <?php if (!empty($_S […]

Spread the love

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 🙁

Spread the love