所以我只是将我的网站从我的本地开发环境上传到我的服务器。但是有一个问题。仅加载索引页面。我已经将一些控制器映射到不同的路由,如下所示:
//controller detection
Route::controller(Controller::detect());
//site routes
Route::get('/','site@index');
Route::get('about','site@about');
Route::get('blog','site@blog');
Route::get('downloads','site@downloads');
Route::get('products','site@products');
Route::get('shop','site@shop');
//admin routes
Route::get('login','admin@login');
//ajax functions
Route::get('loadnews/(:num)','ajax@loadnews');
Route::post('sendmessage','ajax@sendmessage');
Route::post('loadblog','ajax@loadblog');
Route::post('loadblogdetails','ajax@loadblogdetails');
Event::listen('404', function()
{
return Response::error('404');
});
Event::listen('500', function()
{
return Response::error('500');
});
Route::filter('before', function()
{
// Do stuff before every request to your application...
});
Route::filter('after', function($response)
{
// Do stuff after every request to your application...
});
Route::filter('csrf', function()
{
if (Request::forged()) return Response::error('500');
});
Route::filter('auth', function()
{
if (Auth::guest()) return Redirect::to('login');
});
当我点击指向这些路线的链接时,我得到了一个简单的错误:324 (net::ERR_EMPTY_RESPONSE): from chrome。
我怎样才能解决这个问题?
当前站点位于:站点