Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xampp 将我链接到错误的页面?_Xampp_Localhost - Fatal编程技术网

Xampp 将我链接到错误的页面?

Xampp 将我链接到错误的页面?,xampp,localhost,Xampp,Localhost,当我在URL栏中键入localhost/index.php时,它会将我重定向到以下URL:localhost/xampp/。为什么会发生这种情况,为什么localhost/index.php链接没有将我带到index.php页面?htdocs是XAMPP提供服务的文件夹。如果查看xampp/htdocs/index.php的内容,这是localhost/index.php将解析的内容,您将看到行标题('Location:'.$uri./xampp/),它基本上将浏览器重定向到xampp/htdo

当我在URL栏中键入localhost/index.php时,它会将我重定向到以下URL:localhost/xampp/。为什么会发生这种情况,为什么localhost/index.php链接没有将我带到index.php页面?

htdocs
是XAMPP提供服务的文件夹。如果查看
xampp/htdocs/index.php的内容,这是
localhost/index.php
将解析的内容,您将看到行
标题('Location:'.$uri./xampp/)
,它基本上将浏览器重定向到
xampp/htdocs/xampp
的内容。默认情况下,如果地址中没有指定
index.php
文件,它将搜索该文件,因此您将在屏幕截图指向的位置结束


有意义吗?

是否要转到配置类型页面?或者它仍然只提供该地址的
index.php
内容吗?这是显示的页面: