正如标题所述,我无法让我的网站重定向。我已经做了几次尝试,并且即将失去它。
我的 .htaccess 文件如下:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
我将此文件放在 www/Laravel/public 文件夹以及 www 目录中
- mod_rewrite 已启用
- AllowOverride 设置为全部
我的主机文件如下
127.0.0.1 localhost
这是 routes.php 中包含的路由代码
Route::get('authors', array('uses'=>'authors@index'));
我有一个名为 authors.php 的控制器,这是代码
class Authors_Controller extends Base_Controller {
public $restful = true;
public function get_index () {
return View::make('authors.index');}
}
我正在使用 Windows 7 旗舰版。我要炸掉我的脑袋了。请帮帮我,我很烂。