Slim FrameworkとApacheでアプリケーションが動作しません。 public_htmlの/スリム/はBiblioteca/Slim framework error apache
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule^index.php [QSA,L]
リターン:
ルートスリムは、同じ場所で使用とのindex.php(スリム)で
$app->group("/teste", function() {
$this->get("/", function(Request $request, Response $response, $args = []) {
return $response->write("deu");
});
$this->get("/:nome", function(Request $request, Response $response, $args = []) {
return $response->write("deu ".$args['nome']);
});
});
の.htaccessに動作していませんアクセスパスを試すときにエラー500/teste/
多分必要がありますhttpd.confを設定して作成し、.htaccessを有効にしますか?またAllowOverride All。/etcにあるこのファイル/
を見つけていない
は私を助けることができますか?
PrintScreenをプロジェクトリストファイル
は500 –