最新消息:XAMPP默认安装之后是很不安全的,我们只需要点击左方菜单的 "安全"选项,按照向导操作即可完成安全设置。

为什么XAMPP启动后输localhost跳转到http://localhost/dashboard?

XAMPP案例 中文小张 1306浏览 0评论
index.php at c:\xampp\htdocs
<?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 🙁

文章来源:xampp中文组官网

转载请注明:XAMPP中文组官网 » 为什么XAMPP启动后输localhost跳转到http://localhost/dashboard?

您必须 登录 才能发表评论!