0
当我将localhost/index.php输入到我的URL栏中时,它会将我重定向到以下URL:localhost/xampp /。为什么会发生这种情况,为什么localhost/index.php链接不会将我带到index.php页面?将我链接到错误页面?
当我将localhost/index.php输入到我的URL栏中时,它会将我重定向到以下URL:localhost/xampp /。为什么会发生这种情况,为什么localhost/index.php链接不会将我带到index.php页面?将我链接到错误页面?
htdocs
是XAMPP提供的文件夹。如果您查看xampp/htdocs/index.php
的内容,即localhost/index.php
将解析为的内容,您将看到行header('Location: '.$uri.'/xampp/');
,该行基本上将您的浏览器重定向到xampp/htdocs/xampp
的内容。如果地址中没有指定index.php
文件,那么默认情况下会搜索该文件,因此最终会显示您的屏幕截图所指向的位置。
有意义吗?
它将进入配置类型页面吗?还是它仍然服务于'index.php'的内容,只是使用该地址? – esel
这是显示的网页:http://sawmac.com/wp-content/uploads/2010/08/xampp_page.png –