Take the 2-minute tour ×

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.

share|improve this question
Where are the links pointing to? –  Richard Ayotte Mar 27 '12 at 11:22
add comment

1 Answer

up vote 2 down vote accepted

Two things to check:

  1. RewriteBase in your .htaccess
  2. baseUrl property of the front controller
share|improve this answer
WHere do I set the baseUrl here and in my case what would it be. Can teh base Url be set in the application.ini file as well? –  Ali Mar 27 '12 at 7:38
resources.frontController.baseUrl = /path/to/project. Please read the documentation, everything is there and I already provided a link, so minimal search required. –  bububaba Mar 27 '12 at 7:55
add comment

Your Answer


