Laravel 5.8路由问题cpanel

时间:2019-04-03 06:37:01

标签: cpanel laravel-5.8

我试图在CPANEL上部署我的laravel项目,但是每次我在url上输入路由时,总会以404未找到示例:链接:http://myserver。 com它正在工作,但是当我添加http://myserver时。 com / about无效。 ,如果有人尝试帮助我,我非常感谢,对不起,我的英语不好。下面我提供我的代码

路线:

Route::get('/', function () {
    return view('grace.main');
});

Route::get('/about', function () {
    return view('grace.about');
});
Route::get('/contact', function () {
    return view('grace.contact');
});
Route::get('/primary', function () {
    return view('grace.primary');
});
Route::get('/secondary', function () {
    return view('grace.secondary');
});
Route::get('/co-q', function () {
    return view('grace.cocu');
});
Route::get('/facilities', function () {
    return view('grace.facilities');
});
Route::get('/gallery', function () {
    return view('grace.gallery');

Index.php

<?php



define('LARAVEL_START', microtime(true));



require __DIR__.'/../laravel/projects/vendor/autoload.php';



$app = require_once __DIR__.'/../laravel/projects/bootstrap/app.php';



$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);

$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);

$response->send();

$kernel->terminate($request, $response);

0 个答案:

没有答案