找到xampp安装的根目录下htdocs文件夹下的index.php文件

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

把以下语句注释即可

header('Location: '.$uri.'/dashboard/');

参考博客:macOS -- 为什么XAMPP启动后输localhost跳转到http://localhost/dashboard?

相关文章:

  • 2021-11-21
  • 2021-11-21
  • 2021-12-08
  • 2021-12-01
  • 2021-07-17
  • 2022-12-23
  • 2021-09-23
  • 2021-09-25
猜你喜欢
  • 2021-05-25
  • 2021-09-11
  • 2022-02-07
  • 2022-12-23
  • 2021-10-29
  • 2021-12-23
  • 2021-11-21
相关资源
相似解决方案