我有修身framework.I問題試圖在屏幕上顯示的Hello World,但它給我的錯誤:服務器錯誤苗條框架PHP
Server run an intern error and couldn't resolve your request.The server is overloaded or it was an error in a script CGI.
Error 500
我的index.php
<?php
require __DIR__ . '/vendor/autoload.php';
$app = new \Slim\Slim();
$app->get('/hello', function() {
echo "Hello";
});
$app->run(); ?>
和我的.htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-F
RewriterULE^index.php [QSA, L]
我還修改httpd.conf中與線:
<Directory />
Options All
AllowOverride All
</Directory>
所以當我寫http://localhost/monologTree/hello它給了我從一開始的錯誤。有什麼建議麼?謝謝
而不是'RewriteCond%{REQUEST_FILENAME}!-F'是'RewriteCond%{REQUEST_FILENAME}!-f'嗎? – adelowo
它不能解決我檢查過的pb – johnwilliam25