Zend Framework - URL's not working
I uploaded my site to the live environment and the default index/index works just fine. I have filtered out the index.php file using
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
When I type in the direct route mysite.com/index/index
into the browser I get a 404 page. Typing mysite.com/index.php/index/index
results in 'No input file specified.' message.
I get these same messages when visiting any other of my sites URL's. Can anyone point me in the right directi开发者_开发技巧on please?
The rules are right. The .htaccess must be in the public folder. Finally check that there're no other .htaccess (for example in the parent directory of public).
make sure the mod_rewrite is enabled and all calls to the mysite.com should be redirected to the /public/index.php file
Also change 'AllowOveride none' to 'AllowOveride All' in vhost.conf
精彩评论