Ali
Ali

Reputation: 7483

Zend Framework Error : The requested URL was not found

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.

Upvotes: 1

Views: 2999

Answers (1)

bububaba
bububaba

Reputation: 2870

Two things to check:

  1. RewriteBase in your .htaccess
  2. baseUrl property of the front controller

Upvotes: 2

Related Questions