这是我的目录结构
/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/$1 [L]
Issue :
当我浏览此网址时:http://technobuff.in/api/v1/hello这不起作用 . 它显示了 'No input file specified.' 但如果我使用它:http://technobuff.in/api/v1/index.php/hello这工作正常 .
我正在使用Slim Framework进行API开发 . 在localhost中,这很好用 . 请帮忙解释一下这个问题 .
1 回答
感谢Bagus Tesa
只需点击此链接即可 . .HTACCESS for Slim Framework
用以下内容替换.HTACCESS文件的内容