dongyou9373 2015-07-11 19:06
浏览 119

Laravel 5在xampp localhost上显示目录结构而不是index.php

http://localhost/laravel_test/

Instead of routing to the index.php above URL is only printing Index (Directory Structure) of /laravel_test.

I am able access the index page with following:

http://localhost/laravel_test/public/index.php

I tried modifying the .htacess file by adding following line inside the public directory of laravel_test still no change:

DirectoryIndex index.php
  • 写回答

1条回答 默认 最新

  • dongshungai4857 2019-07-12 13:11
    关注

    This is an old post, but in case this helps anyone, I was facing this problem because my httpd-vhosts.conf file was pointing to C:/xampp/htdocs/MySite instead of C:/xampp/htdocs/MySite/public. This is stupid mistake but you know everyone does this kind of mistakes once in a while.

    评论

报告相同问题?

悬赏问题

  • ¥15 画两个图 python或R
  • ¥15 在线请求openmv与pixhawk 实现实时目标跟踪的具体通讯方法
  • ¥15 八路抢答器设计出现故障
  • ¥15 opencv 无法读取视频
  • ¥15 用matlab 实现通信仿真
  • ¥15 按键修改电子时钟,C51单片机
  • ¥60 Java中实现如何实现张量类,并用于图像处理(不运用其他科学计算库和图像处理库))
  • ¥20 5037端口被adb自己占了
  • ¥15 python:excel数据写入多个对应word文档
  • ¥60 全一数分解素因子和素数循环节位数