index.php
use Silex\Application;
require_once __DIR__ . './vendor/autoload.php';
$app = new Application();
$app->run();htaccess
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
</IfModule>探视
127.0.0.1/index.php我得到了
500个内部错误。
有什么解决办法吗?
发布于 2015-11-04 23:40:29
您的htaccess文件不应该命名为.htaccess.php,而应该只命名为.htaccess。
然后确保每个文件都有良好的权限(apache可以访问它)。
还请确保启用了mod_rewrite。
https://stackoverflow.com/questions/33501320
复制相似问题