Ok I have an app that absolutely refuses to work with me and I cannot figure out where it's going wrong. I must provide this caveat, I have not yet deployed a ZF powered app using .htaccess, probably because I have to this point been unable to obtain my .htaccess wizard hat.
Ok so here is the application layout
Code:
root
root/app
root/app/conf
root/app/modules
root/app/modules/default
root/app/modules/default/(controllers|views|etc)
root/lib
root/lib/Zend
root/tests
root/web
root/web/index.php
root/.htaccess
The contents of .htaccess are
Code:
RewriteEngine On
RewriteBase /beta1/
RewriteRule !\.(js|css|ico|gif|jpg|png)$ web/index.php
now when I navigate to
http://localhost/beta1/, I get
Code:
Invalid controller specified (a1)
#0 /usr/local/apache2/htdocs/beta1/lib/Zend/Controller/Front.php(914): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#1 /usr/local/apache2/htdocs/beta1/lib/Zend/Controller/Front.php(223): Zend_Controller_Front->dispatch()
#2 /usr/local/apache2/htdocs/beta1/lib/Lsg/Bootstrap.php(56): Zend_Controller_Front::run('/usr/local/apac...')
#3 /usr/local/apache2/htdocs/beta1/web/index.php(12): Lsg_Bootstrap->runApp()
#4 {main}
obviously, a1 is the last 2 characters of 'beta1'. Does anyone know why that is happening?