【问题标题】:A 404 error occurred Page not found Zend skeleton application发生 404 错误页面未找到 Zend 框架应用程序
【发布时间】:2015-02-10 07:00:28
【问题描述】:

我已经在我的系统上安装了框架应用程序。它的工作开发服务器。但是当我运行代码 localhost 时,我收到以下类型错误:

A 404 error occurred
Page not found.
The requested URL could not be matched by routing.

No Exception available
© 2005 - 2015 by Zend Technologies Ltd. All rights reserved.

【问题讨论】:

  • 您应该编辑您的答案并写下解决您问题的答案。它将帮助将来看到它的任何人。同时投票给帮助过的人的答案。
  • 我已经为你的答案投了票
  • 我的意思是勾选/接受,而不是投票。对不起,我的错。
  • 干杯,很高兴能帮上忙。

标签: php zend-framework zend-framework2


【解决方案1】:

您还必须确保将 Apache 配置为支持 .htaccess 文件。这通常通过更改设置来完成:

1 AllowOverride 无 到

1 AllowOverride FileInfo

欲了解更多信息,请访问以下网址:http://framework.zend.com/manual/current/en/ref/installation.html

【讨论】:

    【解决方案2】:

    如果我没记错的话,.htaccess 文件就是你的问题 检查:http://framework.zend.com/manual/current/en/user-guide/skeleton-application.html

    “如果您看到标准的 Apache 404 错误,那么您需要在继续之前修复 .htaccess 的使用。如果您正在使用带有 URL 重写模块的 IIS,请导入以下内容:”

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [NC,L]
    

    向下滚动到“使用 Apache Web 服务器”,它就在该部分的底部。

    • “zend 骨架 404 错误”的第一个 google 结果

    否则这个页面被建议作为一个很好的入门教程:https://code.google.com/p/zf2notes/wiki/zf2_beginners_tutorial

    错误很简单,听起来基础 .htaccess 文件是为路由设置的,它要么需要友好的 url/参数,要么没有正确地通过 htaccess 文件传递​​。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-18
      • 2012-09-15
      • 2015-06-22
      • 2015-03-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多