Trialcoder
Trialcoder

Reputation: 6014

Change Path for Zend projects

I am new to ZF and using netbeans IDE to create zend projects. When i am running this project its opens a "Index of /ZendProject1" with directories and when i click on the folder "public" then i will get what i written under "applicationiews\scripts\index\index.phtml".

I want my Zend projects to be accessible via http://localhost/ZendProject1/ and not with this --> http://localhost/ZendProject1/public/.

What settings do i need to change for zend folder..as im currently have many projects under my htdocs so it would not be a reasonable solution to change from httpd.conf settings. I think there must be some setting to be managed although i googled it but no solution :(

Note -- I am on Zend learning mode so kindly suggest me some links where i can found more tutorials on zend apart from http://devzone.zend.com/ and http://www.phpeveryday.com/articles/Zend-Framework-Basic-Tutorial-P840.html. (familiar with PHP and understand the basic concept of MVC design pattern ).

Upvotes: 0

Views: 150

Answers (1)

Michael
Michael

Reputation: 1267

Add .htaccess file to each of your project`s directory (root directory of the project, not public). It should contain:

RewriteEngine On
RewriteRule ^(.*)/?$ public/$1 [L]

Upvotes: 2

Related Questions