A 404 error occurred Page not found Zend skeleton application

自古美人都是妖i 提交于 2019-12-11 02:59:07

问题


I have installed the skeleton application on my system. Its working development server. But when I run the code localhost I am receiving error following type error:

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.

回答1:


You must also ensure that Apache is configured to support .htaccess files. This is usually done by changing the setting:

1 AllowOverride None to

1 AllowOverride FileInfo

for further information please visit follow the url:http://framework.zend.com/manual/current/en/ref/installation.html




回答2:


If i am not mistake, the .htaccess file is your issue here Check: 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]

Scroll down to "Using the Apache Web Server" and its just at the bottom of that section.

  • First google result for "zend skeleton 404 error"

Otherwise this page was suggest as a good starting tutorial: https://code.google.com/p/zf2notes/wiki/zf2_beginners_tutorial

Simple by the error, it sounds like the base .htaccess file is setup for routing and it either needs friendly urls/parameters or something is not being handed through the htaccess file correctly.



来源:https://stackoverflow.com/questions/28425855/a-404-error-occurred-page-not-found-zend-skeleton-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!