我使用SLIM框架创建了一个api。我在000webhost.com中托管了它。当我尝试使用REST客户端访问api时,服务器正在将其重定向到http://error404.000webhost.com/?。但响应代码是200可以。我一整天都在尝试,但都解决不了。我甚至试图修改htaccess文件,但无济于事。请有人帮我。我的htaccess文件是这样的:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ %{ENV:BASE}index.php [QSA,L]
你不能。000webhost.com
有一个旧版本的php,它不支持slim。