I lately lauched a zend framework project on the hosting that is shared. With much struggle, I acquired the very first index page working, but pass everything the autoloadable classes like models, forms, mappers aren't found.

This is actually the version of .htaccess i'm using outdoors the general public directory around the root folder.

RewriteEngine On

RewriteRule ^.htaccess$ - [F]

RewriteCond % =""

RewriteRule ^.*$ /public/index.php [NC,L]

RewriteCond % !^/public/.*$

RewriteRule ^(.*)$ /public/$1

RewriteCond % -f

RewriteRule ^.*$ - [NC,L]

RewriteRule ^public/.*$ /public/index.php [NC,L]

A little surprising truth is that same mappers and forms are recognised right in front page, or even the baseURL, but exceed it, there is nothing working.

What am i doing wrong or missing?

I believe should you copy index.php and .htaccess in the Zend Framework "public" folder and set it inside your public_html or equivalent directory. In case your Zend Framework application directory is incorporated in the same directory as public_html then your default .htaccess file and index.php file should work.

/home/yoursite

--application/

---- remotes

---- forms/

---- models/

---- sights/

-- library/

-- public_html/ (public)

---- .htaccess

---- index.php

This informative guide from Take advantage of Allen should help you to get it setup.

Make use of this rather

RewriteEngine On

RewriteCond % -s [OR]

RewriteCond % -l [OR]

RewriteCond % -d

RewriteRule ^.*$ - [NC,L]

RewriteRule ^.*$ index.php [NC,L]

Fundamental idea is that if personal files exists for asked for url on server then send it towards the client browser otherwise forward the request to ZF application to cope with it.

To create your public dir accessible under root domain edit Apache httpd.conf file rather . Map your virtual host to public dir directly .

I am using the identical .htaccess file within the root directory (i.e., parents of public) on the hosting that is shared, and that i haven't any issues with autoloading.

Maybe the issue is elsewhere? As @drew010 asks, exactly what does your index.php seem like?