I am testing a Zend project on my small shared-hosting.I keep everything in the folder 'Zend-project' this is not on the server public-root (cause I've there another project!).
this is actually the structure:
I needed to tweak just a little the project cause I simply can't change my document_root on the shared-hosting and so i edited the .htaccess for this:
RewriteEngine On RewriteCond % ^/favicon.ico$ [OR] RewriteCond % -s [OR] RewriteCond % -l [OR] RewriteCond % -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ /zend-project/index.php [NC,L]
but in the finish everything appears to operate fine except just one Url Route which i put into the router during my bootstrap.
edit:I attempted developing a new controller 'TestController'..having a single action (known as 'test')I attempted to type the url using the controller lowercase (mysite.com/zend-project/test/test)and it is working!When I suspected there's a problem using the 'index' word itself!cause every other controller works like a charme
this really is bootstrap.php
class Bootstrap stretches Zend_Application_Bootstrap_Bootstrap focusing on local atmosphere $router->addRoute( 'langController', new Zend_Controller_Router_Route(':controller/:action', array( 'module'=>'default', 'controller'=>'index', 'action'=>'index' ) ) ) $router->addRoute( 'langIndex', new Zend_Controller_Router_Route(':lang', array('lang'=>':lang', 'module'=>'default', 'controller'=>'index', 'action'=>'index' ) ) ) $router->addRoute( 'langNothing', new Zend_Controller_Router_Route('', array( 'module'=>'default', 'controller'=>'index', 'action'=>'index' ) ) )
I attempted to type the next web addresses (in line with the custom routes I produced)and everithing appears to operate:
//this points towards the pair controller/action -> index/index mysite.com/zend-project/ //this points towards the pair controller/action ->index/index in british lang mysite.com/zend-project/en //this points towards the pair controller/action ->index/rooms in british lang mysite.com/zend-project/en/index/rooms
But whenever I type:
I get the following message: Not Found.The asked for URL /zend-project/index/index wasn't available on this server.
It appears such as the request does not achieve the index.php file ..maybe an .htaccess problem??or what
Discovered that by typing the damaged route's controller with capital letter it really works :
//this works.Controller has capital letter mysite.com/zend-project/Index/index //this fail to work.Control hasn't capital letter mysite.com/zend-project/index/index
why?? (incidentally I am on linux server..)