PHP Slim 框架:未指定输入文件?

PHP Slim framework : No input file specified?

这是我的目录结构

 
/path/www.mysite.com/
    public_html/ 
        api/
            v1/
                index.php
                .htaccess


.htaccess Rule : 
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/ [L] 

问题:
当我浏览此 url 时:http://technobuff.in/api/v1/hello 这不起作用。它显示 'No input file specified.' 但是如果我使用这个:http://technobuff.in/api/v1/index.php/hello 这工作正常。

我正在使用 Slim Framework 进行 API 开发。在本地主机上,这工作得很好。请帮我解释一下。

感谢Bagus Tesa

就跟着这个link。 .HTACCESS for Slim Framework

用以下内容替换 .HTACCESS 文件的内容


    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ index.php [QSA,L]