Zend框架错误:未找到所请求的网址 [英] Zend Framework Error : The requested URL was not found

查看:233
本文介绍了Zend框架错误:未找到所请求的网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立我的Zend框架应用程序在该主机上,但我得到一个请求的URL未找到错误:

I'm trying to set up my zend framework application on this host but I'm getting a Requested URL not found error:

该应用程序是不是也就是它的根目录下的文件夹中,如:www.mysite.com/zendapp/public

The application isn't at the root level i.e its in a folder like: www.mysite.com/zendapp/public

该错误说,它无法找到index.php文件,即使在埃罗邮件中给出的链接是正确的。

The error says that it can't locate the index.php file even though the url given in the erro message is correct.

这是一个htaccess的问题?网页打开正常 - 问题出现时,我点击任何链接。这是我的htaccess文件:

Is this an htaccess issue? The homepage opens fine - the issue arises when I click on any link. Here is my htaccess file:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

URL重写在主机上启用。

URL rewrite is enabled on the host.

推荐答案

两件事情要检查:

  1. 的RewriteBase 在你的.htaccess
  2. <一个href="http://framework.zend.com/manual/en/zend.controller.request.html#zend.controller.request.http.baseurl"相对=nofollow> 的baseUrl 属性前端控制器的
  1. RewriteBase in your .htaccess
  2. baseUrl property of the front controller

这篇关于Zend框架错误:未找到所请求的网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆