星之茫 2019-07-01 10:06 采纳率: 100%
浏览 8662
已采纳

thinkPHP 5 本地访问报The requested URL / was not found on this server.

我在本地用Apache搭建thinkPHP5

重写路由后访问报The requested URL / was not found on this server.
图片说明

我入口文件是有.htaccess文件的

<IfModule mod_rewrite.c>
  Options +FollowSymlinks -Multiviews
  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>

那为什么还会报这个错了

  • 写回答

3条回答 默认 最新

  • 星之茫 2019-07-01 10:24
    关注

    已解决,小问题小问题

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?