我正在尝试将SLIM Framework安装到根目录。
我的.htaccess看起来像:
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]
当我尝试加载http://mydomain.com时,我总是得到500错误。
我的索引文件:
...
$app->get("/", function () {
echo "<h1>Hello Slim World</h1>";
});
...
如果我试图重命名我的.htaccess - &gt;它正在工作。 我的错误在哪里? 感谢。