Zend Framework Error : The requested URL was not f

2019-07-25 18:28发布

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

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

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

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 rewrite is enabled on the host.

1条回答
贪生不怕死
2楼-- · 2019-07-25 19:16

Two things to check:

  1. RewriteBase in your .htaccess
  2. baseUrl property of the front controller
查看更多
登录 后发表回答