发生 404 错误页面未找到 Zend 框架应用程序
A 404 error occurred Page not found Zend skeleton application
我已经在我的系统上安装了骨架应用程序。它的工作开发服务器。但是当我 运行 代码本地主机时,我收到以下类型错误的错误:
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.
如果我没记错的话,.htaccess 文件就是你的问题
检查:http://framework.zend.com/manual/current/en/user-guide/skeleton-application.html
"If you see a standard Apache 404 error, then you need to fix .htaccess usage before continuing. If you’re are using IIS with the URL Rewrite Module, import the following:"
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [NC,L]
向下滚动到 "Using the Apache Web Server",它就在该部分的底部。
- "zend skeleton 404 error"
的第一个 google 结果
否则,建议将此页面作为一个很好的入门教程:https://code.google.com/p/zf2notes/wiki/zf2_beginners_tutorial
错误很简单,听起来基础 .htaccess 文件是为路由设置的,它要么需要友好 urls/parameters,要么没有正确地通过 htaccess 文件传递。
您还必须确保 Apache 配置为支持 .htaccess 文件。这通常通过更改设置来完成:
1
允许覆盖 None
至
1
AllowOverride 文件信息
更多信息请访问url:http://framework.zend.com/manual/current/en/ref/installation.html
我已经在我的系统上安装了骨架应用程序。它的工作开发服务器。但是当我 运行 代码本地主机时,我收到以下类型错误的错误:
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.
如果我没记错的话,.htaccess 文件就是你的问题 检查:http://framework.zend.com/manual/current/en/user-guide/skeleton-application.html
"If you see a standard Apache 404 error, then you need to fix .htaccess usage before continuing. If you’re are using IIS with the URL Rewrite Module, import the following:"
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [NC,L]
向下滚动到 "Using the Apache Web Server",它就在该部分的底部。
- "zend skeleton 404 error" 的第一个 google 结果
否则,建议将此页面作为一个很好的入门教程:https://code.google.com/p/zf2notes/wiki/zf2_beginners_tutorial
错误很简单,听起来基础 .htaccess 文件是为路由设置的,它要么需要友好 urls/parameters,要么没有正确地通过 htaccess 文件传递。
您还必须确保 Apache 配置为支持 .htaccess 文件。这通常通过更改设置来完成:
1 允许覆盖 None 至
1 AllowOverride 文件信息
更多信息请访问url:http://framework.zend.com/manual/current/en/ref/installation.html