views:

36

answers:

1

I am trying to develop websites using Zend Framework. But I came to a strange problem, the public folder is not showing up. I was suppose to change the apache's configuration to redirect http://localhost/ to http://localhost/public, but there are many projects inside the WWW folder, which has to be accesed.

I can enable the mod_rewrite to bring out the public folder, but I am not allowed to change it while I upload it to the actual web server. Is there anyway to solve this problem?

May be a .htaccess file to change the site root folder would be of help.

+1  A: 

This answer is a detailed description of manually setting up your virtual host and configuring a basic ZF app to run. Hopefully it will help.

Update: Given your edited question, perhaps my blog post discussing one approach to deploying a ZF app on shared hosting might be helpful.

David Weinraub
Check my comment also, may be that would give you an idea
Starx
Right, one thing about shared hosting is that you usually can't create a virtual host that points to the `public` folder, like the standard ZF setup suggests. The blog post referenced in my answer presents a pretty painless way to remove the `public` folder and have its contents reside at the web root of your shared hosting.
David Weinraub