I'm trying to install SLIM Framework to the root.
My .htaccess looks like:
RewriteEngine On
# Some hosts may require you to use the `RewriteBase` directive.
# If you need to use the `RewriteBase` directive, it should be the
# absolute physical path to the directory that contains this htaccess file.
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
And when I'm tried to load http://mydomain.com I'm always getting 500 Error.
My index file:
...
$app->get("/", function () {
echo "<h1>Hello Slim World</h1>";
});
...
If I'm tried to rename my .htaccess -> it's working. Where is my error? Thanks.