报错信息:

The requested URL /laravel5/public/home was not found on this server.

解决方法:

1、编辑apache中httpd.conf配置文件,去掉“#LoadModule rewrite_module modules/mod_rewrite.so”前面的#注释符

2、将httpd.conf中“Directory”的AllowOverride None改成AllowOverride All

如果还是不能运行,按以下步骤进行配置:

Rename the server.php in the your Laravel root folder to index.php and copy the .htaccess file from /public directory to your Laravel root folder.

相关文章:

  • 2021-09-29
  • 2021-06-03
  • 2021-10-15
  • 2021-04-28
  • 2021-12-29
  • 2022-12-23
  • 2021-06-10
  • 2021-10-18
猜你喜欢
  • 2022-01-31
  • 2022-02-03
  • 2022-01-07
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-07-31
相关资源
相似解决方案