Próbuję stawiać pierwsze kroki z Zend Framework, jednak nie działają mi przekierowania na index.php w katalogu public, zarówno lokalnie, jak i na serwerze cba.pl.

Na razie próbuję postawić Zend'a lokalnie na Wampie.

Mam strukturę katalogów:
  1. bootstrap-3.2.0-dist/
  2. ...
  3. magisterka/
  4. ...
  5. wordpress/
  6. ...
  7. zf-tutorial/
  8. .zfproject.xml
  9. application/
  10. Bootstrap.php
  11. configs/
  12. controllers/
  13. models/
  14. views/
  15. docs/
  16. library/
  17. Zend/
  18. public/
  19. .htaccess
  20. index.php
  21. tests/
  22. application/
  23. bootstrap.php
  24. library/
  25. phpunit.xml
  26.  

Korzystam z Zend 1.12.7, projekt został wygenerowany przez skrypt, mod rewrite w Apache jest włączony.

Mój .htaccess wygląda następująco:

  1.  
  2. RewriteEngine On
  3.  
  4. # The following rule tells Apache that if the requested filename
  5. # exists, simply serve it.
  6.  
  7. RewriteCond %{REQUEST_FILENAME} -s [OR]
  8. RewriteCond %{REQUEST_FILENAME} -l [OR]
  9. RewriteCond %{REQUEST_FILENAME} -d
  10. RewriteRule ^.*$ - [NC,L]
  11.  
  12.  
  13. # The following rewrites all other queries to index.php. The
  14. # condition ensures that if you are using Apache aliases to do
  15. # mass virtual hosting, the base path will be prepended to
  16. # allow proper resolution of the index.php file; it will work
  17. # in non-aliased environments as well, providing a safe, one-size
  18. # fits all solution.
  19.  
  20.  
  21. RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::$
  22. RewriteRule ^(.*)$ - [E=BASE:%1]
  23. RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]
  24.  


Próbowałam już różnych wersji plików .htaccess z różnych tutoriali i forów, ale jak na razie nic nie działało poprawnie.
Po wpisaniu w przeglądarkę localhost/zf-tutorial pokazuje mi się tylko lista katalogów (index of).

Jak skonfigurować Zenda poprawnie?